>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 ...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)