Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code before or after :: scope resolution
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Running code before or after :: scope resolution
Miscellaneous
Thread ID:
00048292
Message ID:
00048292
Views:
57
I have a form class that I use for multiple applications to allow a user to login. In the click event of the form I create for each application, I use the following code:

ConnectName = 'name_of_connection'
DSNName = 'name_of_dataset'
frmlogin.cmdOK::Click

Now I have one application where I need to use the user's UserID in another part of the application. So I tried creating an application property and using it like this:

ConnectName = 'name_of_connection'
DSNName = 'name_of_dataset'
frmlogin.cmdOK::Click
goApp.UserIDEntered = ThisForm.txtUserID

But when I do this my application just stops (with no error messages). The login form just stays on the screen and I can't close it. I also tried it this way, with the same results:

ConnectName = 'name_of_connection'
DSNName = 'name_of_dataset'
Test = ThisForm.txtUserID
frmlogin.cmdOK::Click
goApp.UserIDEntered = test

Why won't this work?

Jeff
Next
Reply
Map
View

Click here to load this message in the networking platform