Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCATTER... NAME
Message
De
21/07/1999 19:26:11
 
 
À
21/07/1999 19:18:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00244446
Message ID:
00244459
Vues:
21
Thanks for your reply. I need to pass the entire record because the calling form is based on a view with a buffered record. In the best case, another form won't have access to the latest data, in the worst case it won't find the record at all if it's a new one being edited and not yet saved.

>IMHO, SCATTER...NAME is a good choice, the object created is very lightweight, having no event or method. Another choice would be to pass the PK of the record to the other form and let the other form get the record.
>
>The object is created private.
>
>>I'd like to pass the contents of a record to another form that uses a private datasession. I gather that using a "parameter object" is a good approach. I've never implemented it but I thought I'd give it a try.
>>
>>The SCATTER... NAME command looks almost too easy. Is this a good way to create the object I want? How are such objects scoped? Are there any pitfalls to using it this way?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform