Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reinitializing the same form.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00173818
Message ID:
00174072
Views:
29
>>I have a form with three pages I use to enter data into a database. Each page is for specific information. Once all the pages are complete the data is entered into the db. I ask the user if they want to enter information for a new sample and if yes I want to reinitialize the form.
>>
>>I want to reinitialize since I have code in the form's INIT procedure to set default values for text boxes and erase data previously entered. Perhaps this isn't the best place for the code.
>>
>>Any advise is welcome.
>
>You can make a custom method like Erick suggested or just add your code to the form's refresh method and call thisform.refresh() whenever...

In my experience, it would only be a matter of time before you needed to run the refresh method and not reinitialize. I think it is advisable to leave yourself the flexibility to run the code without tying it to any other event...
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform