Gentlemen, I have a VCX library which we have developed that uses collections and I keep getting a compilation error:
Visual Class Library d:\dev\flexipol\flexispec\classes\traffic_light.vcx has the following errors: Unknown OCOLLECTION_X - Undefined
The collection is mainly used in the "myRefresh" event of the component (base class is a container) and is initialised to null on the property sheet, subsequently getting populated in the actual <<container>>.oCollection_Assign method::
* ControlSource_Assign Method Lparameters vNewVal Local oCollection_1 As Collection Local I
This.oCollection = Evaluate(vNewVal) This.Control_Source = m.vNewVal oCollection_1 = This.oCollection ... etc.
The collection thus assigned is manipulated in the myRefresh method and basically parsed through element by element refreshing a discrete control for every instance in the collection.
* myRefresh Method Local oCollection_x as Collection local I local oLight Local lDoTextMerge local cOldAlias
cOldAlias = Alias() oCollection_x = This.oCollection
I=1 For Each oObj In oCollection_x ... etc etc.
All the coding works despite this damned error being thrown at compile time and I have tried all types of External commands thinking that the oCollection not being found could be fixed as you do with external arrays. However there isn't an "External Collection" command... so I am now stuck!
Any ideas?
Dave