>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.
I always get the "not valid outside WITH..ENDWITH" error - VFP6 SP4.
Are you sure there's not a WITH..ENDWITH higher up somewhere?
Insanity: Doing the same thing over and over and expecting different results.