>I use the When method of the textbox and it works just fine.
>example
>
> if mylogical
> return .T.
> else
> return .F.
> endif
>
>Hope this helps.
Just in case you don't know it already:
1) Code is more readable when you use the HTML codes < PRE > at the beginning and < /PRE > at the end (without the spaces).
2) Your code above is equivalent to:
return mylogical
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)