Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blanking form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00157461
Message ID:
00157471
Views:
19
For a single page, you would use something like:

THISFORM.PageFrame1.Page1.SetAll("VALUE","")

This would set the value to "" for every control that has a value property.

You can also specify that SetAll only effect certain classes. For example, if you only want to reset the value of objects based on the textbox class, the code would be:

THISFORM.PageFrame1.Page1.SetAll("VALUE","","textbox")

If you have numeric and text type textboxes on your form (all based on the same class), this approach may not work very well. If the your objects are linked to data via the controlsource property, you could add a blank record to the underlying table.

HTH

-Brien

>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,
>>
>>I think THISFORM.SetAll("VALUE","") should do the trick.
>>
>>-Brien
>>
>>>Is there an simple way to set the value of all the controls on a page to empty? I'm trying to avoid setting each individually.
>>>
>>>Thanks,
>>>
>>>-Michelle
Brien R. Givens

Brampwood Systems
Previous
Reply
Map
View

Click here to load this message in the networking platform