Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a form from another form
Message
From
23/08/2005 10:32:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01042911
Message ID:
01042926
Views:
23
>Minds gone blank! How do I refresh my main form when I close my other form?
>
>Many thanks

'pends how you close the form.

By physically cloing it? - in the Unload event you can have code to refresh the other form,

as in: loMainForm.Refresh(), assuming the other form was invoked with an object name, as in:

Do form MainForm NAME loMainForm.

If the closing form was called from the main form, then, assuming the 2nd form is modal, directly after the invokation to it you can have Thisform.refresh(), as this is the next bit of code to be run after the other form.

Clear as mud?

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform