Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement