OK - now that you know the trick, you can consider simplifying it a bit..

Think of a 2-element array - the site and the server. If you can load all your data into this array, you can simply pass the array value from script to script.

Before anyone suggests a global declaration or using the CALL statement to preserve var content, remember that the first script (where the var is defined) is run in one user context, and the data is passed to another script run in a different user context - hence the need for this level of complication if you want to PASS variables.

There are other methods, with differing complexities and capabilities..
You could write your vars and values to a .kix file and call that file from the second script is one way. This example would require NoVarsInStrings to work as is. This creates a .KIX file with the variables and their values that the second script would simply CALL. Use DIM or GLOBAL as needed.
 Code:
$ = RedirectOutput('temp.kix')
'Dim $Arg1, $Arg2' ?
'$Arg1=' $Arg1 ?
'$Arg2=' $Arg2 ?


Using an external INI file and READPROFILESTRING/WRITEPROFILESTRING functions is another method, and might be the way I'd have done it.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D