>>>That'll do the whole form... I'll try modifying it for a single page... What I'm worried is that it's going to choke on numeric values.
>>>
>>>Thanks,
>>>
>>>-Michelle
>>>
>>Michelle,
>>
>>If your controls are bound, you can simply issue
>> BLANK
>>or
>> BLANK FIELDS [comma-delimited list of your fields here]
>>followed by a Refresh() (page or form). It will blank the underlying fields in the buffer. If your controls are unbound, then you should have some code to initialize them anyway, so you'd just have to call it.
>
>They're not bound, and I don't have anything to initialize them. They're just there. :)
>
>-Michelle
FOR EACH oControl IN Thisform.pageframe.pgMypage.Controls
DO CASE
CASE TYPE("oControl.Value")="C"
oControl.Value=SPACE(0)
CASE TYPE("oControl.Value")="L"
oControl.Value=.F.
CASE TYPE("oControl.Value")="N"
oControl.Value=0
CASE TYPE("oControl.Value")="D"
oControl.Value={}
ENDCASE
ENDFOR
Edward Pikman
Independent Consultant