thank you very much,yes this what i need.
>>hi,
>>thank you ,
>>after save i need to clean all textbox,editbox...etc.
>>
>
>
>for each loControl in thisform.Controls
> if pemstatus(m.loControl, 'value', 5)
> loControl.ResetToDefault('value')
> endif
>next
>
>This would work for only one level hierarchy deep. If you have pageframes or containers with objects, you need to use recursion.