Complete the login and logout
scripts
Contents
Where you are
Run the Connection
Object wizard
Modify the connection
information
> Complete the
login and logout scripts
Earlier in this lesson, you called the connection service manager
from the Clicked event for the login window OK button. Next you add code
to the same Clicked event to instantiate the Transaction object with
information entered by the user.
You also add code to the login window Cancel button Clicked event
and to the application Closed event.
Minimizing typing errors in the Script view
If you right-click inside the scripting area, you open a pop-up
menu that includes Paste Special commands. You can use these commands to
paste statements, objects, functions or even the contents of text files
into the event script. This reduces the risk of typing errors. You can
also use AutoScript to complete code, as you will see in this
lesson.
In this exercise you: