Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I list all the flds on a FORM?
Message
 
 
To
02/09/1997 09:25:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00047201
Message ID:
00048186
Views:
33
>>you don't have fields on the form you have objects which can be bount to
>>fields (or not)
>>
>>Arnon

Insofar as doing this after form instantiation (rather than during form design) Arnon's reply is key, Use an object reference to the form and go after the CONTROLS collection array:

For Each oControl in oMyForm.Controls
&& oControl will now enumerate each "field" in your form as an object reference to that control.
&& If you want to know what type of "field" it is, or what its name is, just reference oControl.BaseClass or oControl.Name
EndFor

also, oMyForm.ControlCount will tell you how many controls are on the form.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform