Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New migrator for FPD to VFP
Message
De
15/10/1998 10:54:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00147002
Message ID:
00147146
Vues:
35
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform