General information
Category:
Coding, syntax & commands
Title:
Running code before or after :: scope resolution
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only