Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
And again: Collection - FYI
Message
 
To
26/01/2004 06:16:59
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00869788
Message ID:
00870539
Views:
20
Hi Agnès,

Just a question, Is the goGroup collection a defined property of the .colApp.ITEM(toApp.gcGUIDAppGroup) object and the collection created with CREATEOBJECT ?

I yes remove the property and use ADDOBJECT("goGroup","COLLECTION")

Marcel

>Hi Marcel,
>
>the problem raises only with more complex structrues. I have many places where I do the same thing with structures less complex and it work fine.
>
>One of the problems reproducing is that the the string I like to ADD is part of an object. This object is a (grand) parent of the target object.
>
>*target Object
>.colApp.ITEM(toApp.gcGUIDAppGroup).goGroup.ITEM(toApp.gcGUIDGroup).goPath
>*source object
>.colApp.ITEM(toApp.gcGUIDAppGroup)
>
>those are also back linked
>
>.colApp.ITEM(toApp.gcGUIDAppGroup).goGroup.ITEM(toApp.gcGUIDGroup).goPath.goParent.goParent.goParent
>*is the same object as
>.colApp.ITEM(toApp.gcGUIDAppGroup)
>
>
>It seems that the SETVAR method, wich is not the same as "=" mixed up something. I.O.W. my guess is that the object returend by SETVAR is not the same as returned by "=". There is a similarity to the FOR EACH problem, but is it not the same.
>
>Agnes
>>Hello Agnes,
>>
>>
>>I just can't reproduce your problem with this code,
>>
>>
>>local locolT
>>_VFP.SETVAR('locolT',CREATEOBJECT("COLLECTION"))
>>
>>locolT.ADD("",[DEFAULT])
>>
>>locolT.REMOVE([DEFAULT])
>>lcx = "Test"
>>locolT.ADD(lcx,[DEFAULT])
>>
>>lcx = "Test"
>>locolT.REMOVE([DEFAULT])
>>locolT.ADD(lcx,[DEFAULT])
>>
>>
>>
>>What did you think I need to add to reproduce it ?
>>
>>Marcel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform