Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to launch form as object from a function
Message
 
To
03/10/2002 18:30:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00707602
Message ID:
00707920
Views:
18
I am writing a project in which all forms must be checked for user access before launching them. A badge scan is required when the form is requested. I cannot use a universal login because this application sits on a shop floor and is stateless. To handle security I have a function in the project's main procedure file that the form name is passed to. Security is checked through a security object and if the user is okay the form is opened. The problem, how do I launch the form as an object and have it stay open? When I run the function the form loads, shows, and then immediately vanishes. Maybe it would stay open by me using a global variable as the object name? But then the forms would keep overwriting each other because they're all using the same global. I would rather load the forms as objects with the newobject() command then run them with do form.

Sound like you're missing a READ EVENTS Clause.
Previous
Reply
Map
View

Click here to load this message in the networking platform