>>>>>>>>>>>>
>Even if you do not call that function from withing a WITH/ENDWITH, you can use the .TextBox1.Value in any form method. There is an implicit ThisForm for any .Object that is outside a WITH/ENDWITH. I found that accidently and wondered why my code did not spawn an error.
>>>>>>>>>>>>
>
>Now, that's interesting! I knew what Barbara has mentioned but did not know this one.
Moreover, it works when you call it in the function like:
IF TYPE(".myProperty") = "C"
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison