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