>Hello Cathy,
>thank you very, very much for the lightning response.
>Yes, it 'Printing...', that was a typo. I will definitely try your suggestion because we are using VFP 7.0 but why this expression is invalid(just curious)? Because of 'IIF' or because I can't use WEXIST() in 'IIF' or another reason?
>Best Regards
>Igor
On Entry and On Exit accept "expressions" to be evaluated by VFP (like MyUDF). What you were entering is an actual line of code (like DO MyProgram). Using EXECSCRIPT is a way to force a line (or several lines) of code to run because EXECSCRIPT() is treated like an "expression" .. that happens to "run" the code inside of it.
Cathy