>>You can do this using NVL and AND technique. I forgot the exact details and got distracted. I'll search a bit later. Or you can use Hilmar's suggestion.
>
>If there are but a few variables, I like your suggestion better - if you manage to make it work.
>
>I see that _vfp.setvar() returns a null, so I guess the syntax would have to be something like this:
>
>
>nvl(_vfp.Setvar("Var1", "Some value"), .T.) AND nvl(_vfp.Setvar("Var2", 5), .T.) AND ...
>
change to OR operator and NVL() is useless.