Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing form from loading in DE
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00064758
Message ID:
00064780
Views:
37
>>During the DE.Init of my form I check for the existance of a table. If it doesn't exist I issue a message stating that the file doesn't exist. At this point I want to stop instantiation of the form. How do I do this?
>Colin,
>
>You can't stop the form there but you can check for the table having been openned in the form's Load with;
>
> IF NOT USED("")
> RETURN .F.
> ENDIF

Thanks for the reply Jim and everyone else. I went with Jim's suggestion to use the Load event instead of Init. If I return .F. from the forms Load event the DE never gets processed.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Reply
Map
View

Click here to load this message in the networking platform