Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New migrator for FPD to VFP
Message
From
15/10/1998 10:54:43
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00147002
Message ID:
00147146
Views:
30
Hi Garrett ---

>>After trying 2 or 3 tricks, i´ve made this my standard for use of memory variables:
>>1. Define them as public in the load event of the form
>>2. Release them in the destroy event.
>>
>>This works fine to me.
>
>But what happens if you open two instances of the form? You'll lose your variables when you close one of them... I'd try using AddProperty (in 6: I don't remember if it's earlier) to add the memvars as form properties.

AddProperty is VFP6 only but I'd agree that it's the only way to go.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform