Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting values to default
Message
 
To
15/02/2002 18:52:41
Ian Johnston
Computer Software Solutions
Woodland, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00621009
Message ID:
00621522
Views:
22
How about.

For each Control in ThisForm.Controls
If Upper(Control.BaseClass)= 'TEXTBOX' .or. Upper(Control.BaseClass) = 'COMBOBOX'
Control.ResetToDefault('Value')
Endif
EndFor
ThisForm.Refresh()

You will need to set default values for the text/combo boxes in the designer but it should work ok.

Mark Swiencki
EPS Software Corporation

>I am looking for a way to reset the default values for check boxes and comboboxes on a page. The combo boxes have character values so if I try to call the setAll method of the page with .SetAll('value',0), it cannot handle the comboboxes.
>
>TIA
Mark S. Swiencki
EPS Software www.eps-software.com
mark@eps-software.com
Previous
Reply
Map
View

Click here to load this message in the networking platform