The first thing is that, presonally, I use LostFocus and never Valid.
In regard to your problem: there are few ways. For example:
This.tag="A"
IF Empty(This.Tag)
Return
Endif
This.Tag=""
>Hmmm... Let me step back a step then, maybe there is another way than a custom property...
>
>What I really want to do is to run some code in my valid event if the user has changed the value of the text box. (Basically, it does a lookup into another table and fills fields based off the current ssn.) But if the user doesn't make a change to the ssn, I would rather not run the code.
>
>So, what is the best way to tell if a user has changed the value of a text box during the valid event?
>
>>>Arrgh. Slightly more than a minute. Oh well.
>>>
>>>So the only way to do it is to add a custom class? Yech.
>>>
>>>Would it work if I put in the form's init method a call to the text box's addproperty method?
>>
>>It's supposed to work in VFP6 (basically I'm still with VFP5), but the normal OO design (IMHO) does not like it.
Edward Pikman
Independent Consultant