Quote:


The action of DIMing the variable makes its value NULL(Is that right?)





Thats right.

Quote:


If I pass a parameter like I did above, does the script consider it dimmed?





Yes and no. It considers it as GLOBAL, as if you had done this:

Global $somevariable

Quote:


If not how do I DIM it without losing its contents?





As far as I know you cant. Just assume command line $vars are Global.