>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.
Don't forget... Ken Levy has AddProp.fll on his web site. Your program could check to see if the version was 5.0 and if so, add the addprop library, if not, any call to addprop would use 6.0 built in function.
BOb
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement