Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Public Variables When Form Runs
Message
From
20/06/1999 18:40:46
 
 
To
20/06/1999 12:43:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231160
Message ID:
00231953
Views:
15
What occurs here is that an object is created with no exposed methods and one collection. Each item in the collection represents a field which can be referenced as oRecord.xxxxx where xxxxx is the same as the relative field name. When changes are to be saved you may "Gather name oRecord memo".

The exact syntax from the VFP help file is:

GATHER FROM ArrayName | MEMVAR | NAME ObjectName
[FIELDS FieldList | FIELDS LIKE Skeleton | FIELDS EXCEPT Skeleton]
[MEMO]



This technique does not require memory variables other than the object reference.


Glenn

>>An even more elegant method would be as follows

>>
>>PUBLIC oRecord
>>SCATTER NAME oRecord MEMO
>>
>>Glenn
>
>er... how that work then?
>
>Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform