LOL

If you do not declare the variables at the top of your script then KiXtart assumes that they are to be used as Global variables. So the variables can be used in the master script and child scripts until the kix32 or wkix32 session is ended by you or when the script is finished.

Declaring the variables will save you some headaches.

If you use Dim $var1, $var2, $var3 at the top of your script then the variables are available to the script that decaled them using the DIM command. If you replace DIM by GLOBAL then they are available for the master and all child scripts.

Using SetOption("Explicit","On") will tell kix that all variables MUST be declared and if they are not the script just wont run. This is just one of the little helpers to move to best practice scripting.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.