Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid opening a form with the wrong record ?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00532330
Message ID:
00532641
Views:
8
Glenn,

Nope, the form Init fires after all of the controls have instantiated and before anything has painted on the screen. If you put the code in the Activate() you'd need to add code to make sure it only happens the first time and not every time the form regains focus.

>Shouldn't he do this kind of thing in the first activate event? Drew Speedie wrote an article in FPA a couple of years ago about forms instanciation and coined "LISAG". Hed should probably check out the article.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform