Hi TMGreen,
"Douglas J. Steele" wrote:
As Doug says, certain errors just reset the value of a global variable and
hence, if you are looking forward to using its value for an entire session
with your App, it is unreliable to the extent of how thorough you are with
error handling.
Usually, I prefer to use the global variables to store values for immediate
consumption and for those which obviously cannot be declared at
Procedure-Level or at Module-Level.
For longer sessions, such as storing the User's Name (other than Network
login name), which needs to be stored for a full session with the db, I just
hide the sign-on form after validating the signon, and get the UserName value
from the hidden form.