>>>>>change to OR operator and NVL() is useless.
>>>>
>>>>or just use the = command
>>>>
>>>>
>>>>=_vfp.SetVar('Var1', "Some value"), _vfp.SetVar('Var2', 5)
>>>>
>>>
>>>Are you sure you can use it in the OnExit expression in the report?
>>
>>Never tried, but it is a valid foxpro command so I would guess it works.
>
>I'm pretty sure it will not work.
That works in Command window:
=_vfp.SetVar("var1",09),_vfp.SetVar("var2",109)
? var1
? var2
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.