Actually it does not work that way, Jack. The "$UDF_SetOptions = SetOption($a, $b)" statement actually sets the option GLOBALLY and returns the previous option setting to the UDF that called it, PadStr in this case. Then in PadStr the "NoVarsInStrings" and "Explict" options are in force until we call UDF_SetOptions again passing it the previous values set at the top of PadStr.

[ 23. September 2003, 05:22: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/