Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Properties or Form Collection
Message
 
To
28/04/2008 13:19:56
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01313565
Message ID:
01313642
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform