Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Local vs. Global Variables 1

Status
Not open for further replies.

BobWaterhouse

Programmer
Dec 11, 2002
27
US
I may be overlooking something in the documentation, however, we are running many Aspect scripts that use the same variable names. When we run more than one at the same time, one seems to be possibly picking up variable information from the other script. If this statement is true, is there a run time setting that would correct this? Is it possible that the variable we are using are assumed as global? Could someone give me an example of the diffeence between defining a Local and Global variable please? (We are using 4.8) Thanks.
 
If the variable is declared at the beginning of your script and is not inside a procedure, then it is considered a global variable. I believe this would explain your problem if two scripts had the same global variable declared, but haven't tested that theory as of yet.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top