I have created a class TMT2PropertiesCollection as a separate file. I have a second class (TMT2Layers) and from within Layers I can make a call to Properties (e.g. properties.xxx and back comes a value). But In In my main form I call TMT2properties.xxx and it comes back empty! I am new to class use -- have I forgotten to somehow initialize the lass? I can see no dfference in the calls. Can someone clue me in a bit?
The code looks sort of like this:
Public Class TMTmain
Private TMT2properties As New TMT2properties
Private TMT2propertiesCollection As New TMT2propertiesCollection 'New TMT2propertiesCollection
Private TMT2LayerManager As New TMT2LayerManager 'New TMT2propertiesCollection
so on we go to a loop in the main form were I ask for TMT2properties.count and no mater how many items are in the collection, all I get back is zero! But in the routines that run in TMT2Layers I get back explicitly the number of items in the collection at all times!
Can anyone help?
August 24, 2010 5:50 PM
August 24, 2010 5:59 PM