Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Losing Public Variables When Form Runs
Message
De
20/06/1999 18:40:46
 
 
À
20/06/1999 12:43:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00231160
Message ID:
00231953
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform