Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GATHER NAME problem
Message
From
04/07/2003 04:11:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00806421
Message ID:
00806881
Views:
22
Hi Viv,

try to check properties available using AMEMBERS() and PEMSTATUS() functions. Not every object need to have .NAME . EMPTY Objects may be total without any properties.

Update:

If you use SCATTER NAME don't miss the ADDITIVE clause.

HTH
Agnes
>Hi Jamie,
>
>>...somewhere that the use of a collection and FOR EACH made good sense and it is buggy
>
>
>Oddly enough I hit another similar problem later in the day. I had a collection of objects one of whose properties was a reference to another object. After building the collection some of the original references to these 'inner' contained objects were released. Subsequently attempting to access these objects via the collection produced confusing results. E.g:
>
>
>ISNULL(Object)  && .F.
>TYPE("Object")  && "O"
>? Object.Name   && (Access some property) - ERROR
>? TYPE("Object.Name")  && "U"
>
>
>In the end I was reduced to using the last line above as a basis to determine whether the object actually existed. I would have expected either
>(a) the object to remain instantiated because a reference to it was held in the collection or (b) (and less likely) the collection reference to be .NULLed.
>
>Oh Well, Regards,
>Viv
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform