Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Properties or Form Collection
Message
 
À
28/04/2008 13:19:56
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01313565
Message ID:
01313642
Vues:
25
>Not sure if I'm putting this correctly, but I found myself putting a number of properties on a form that contained patient demographic data that was passed into the form. Would it be better to create a form array (object, collection?) that contained all the different properties for the patient? How would I do that? I know how to creat a form array, but is there a different/better way to have a collection of items that will need to be in scope for the entire form?

Could you create a class that contains only the data that represents patient info? Then you could pass this class to the form or any other object and it would only be one parameter. Then, in the Init of the form store it to a form property. If you really felt inspired, you could code in methods to retrieve, update and the save changes.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform