Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal Forms - Always Private DataSessions?
Message
 
To
09/06/1998 11:50:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00106105
Message ID:
00106582
Views:
29
>Does it have to be called from a form? Can't I call it from a .prg, for example as an initial logon screen that checks for user_id and password and initializes an auditing/log file? Would this be an appropriate use?

That's correct, Lincoln. You would use a modal form here so the user MUST log in or exit before he goes on to any other part of the program.


>So if called from a form it uses the datasession of the calling form?

Correct again!

>I'm not sure I understand this. Are you saying I should not use the "DefineWindow/OpenWindow" process/property for a TexBox to edit a memo field but should creat a modal form(using default datasession)instead?

"DefineWindow" and "OpenWindow" are Fox2x commands. They aren't BAD, but I prefer to use a form or container class rather than call a window which needs coding every time. Also, what happens if multiple copies of a form try to open windows all with the same name?

I have a modal form class with an editbox and OK/Cancel buttons. I pass it the table and field name and it defaults to the calling form's data session. Just add 1 line of code to a button on the calling form

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform