Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resetting values to default
Message
 
À
15/02/2002 18:52:41
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00621009
Message ID:
00621522
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform