One key thing to understand about SetOption is that it returns the current setting. This allows you to modify and then return the original setting, as in
 Code:
$CurNVIS = SetOption('NoVarsInStrings', 'Off')  ; get current value and turn setting off
; code with Vars embedded in strings goes here...
$Rc = SetOption('NoVarsInStrings', $CurrNVIS)  ; restore original setting
Most of the time you turn these on at the start of your code and don't bother with them again, but there are odd conditions where you need to change the settings for a while and then set them back.

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