Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to launch form as object from a function
Message
From
03/10/2002 23:39:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/10/2002 18:30:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00707602
Message ID:
00707655
Views:
23
>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.

There is more than one way and an easy one is to make them modal.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform