Salesman0Gil Posted June 25, 2007 Posted June 25, 2007 I have script that does a lot of other thing, but one of the first things it does is run a diffrent script that set 5 variables using the Set Variable command. This works fine on it's own, but when the variable script is called from inside a diffrent script, it skips all set variable steps. Do the all set variable steps have to be wihtin the main script?
David Jondreau Posted June 25, 2007 Posted June 25, 2007 $ variables exist within a script. $$ variables persist.
mr_vodka Posted June 25, 2007 Posted June 25, 2007 See here. Variables You could pass the values of the variables via a script parameter to your subscript or use global variables which will retain their values for that particular file.
Ender Posted June 25, 2007 Posted June 25, 2007 Set Variable does work as a subscript, but if the variables are of the $ variety, they will be local to each subscripts. Try using two $$ for the variables to declare them as global to the file.
Salesman0Gil Posted June 25, 2007 Author Posted June 25, 2007 I did try using "$$" but the script still skipped all Set Variables steps. I witnessed using the Script Debugger
fabriceN Posted June 25, 2007 Posted June 25, 2007 Is the context correct when the subscript is performed ?
Salesman0Gil Posted June 26, 2007 Author Posted June 26, 2007 Yes, if I run the script alone it works fine
Ender Posted June 26, 2007 Posted June 26, 2007 Maybe you can post an example file illustrating the problem, or at least screenshots of the scripts.
Recommended Posts
This topic is 6362 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now