Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Public Variables When Form Runs
Message
From
20/06/1999 19:36:28
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231160
Message ID:
00231959
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.
>

Neat. Certainly improves on my present code

Thanks

Harry
Previous
Reply
Map
View

Click here to load this message in the networking platform