Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lets go for less than 26 seconds on this one...
Message
 
To
14/04/1999 11:48:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00208214
Message ID:
00208229
Views:
23
Hi Ed,

Why do you prefer to use LostFocus event instead of Valid?

>The first thing is that, presonally, I use LostFocus and never Valid.
>In regard to your problem: there are few ways. For example:
>
>***Textbox.InteractiveChange event
>This.tag="A"
>***Textbox.LostFocus event
>IF Empty(This.Tag)
> Return
>Endif
>This.Tag=""
>** run your code here
>
>
>
>>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.
Igor Gelin
Database Developer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform