Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another *Valid* Problem using an .EXE
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00453106
Message ID:
00453499
Views:
25
>>Valid will only fire if you've changed the value in the field. Could that be the problem?
>
>It is incorrect. For textbox, for example, Valid fired each time you lose focus. In my base text box class I put code (if this.Value<> this.OldVal ...) just to prevent this functionality and run validation only when value changed.
>
>However, from the common sense view, you're correct - it will be very good if we will have evebt that fires only when value really changed, but not for each character, but when losing focus.
>

Yes, you're right. It used to work this way in 2.x but it doesn't in VFP, (although the Valid for combos and listboxes in VFP will only fire if you select something).

>Steven, how you managed to use Enter key to move to another control? If you do this from KeyPress event of control - here might be a problem. In my application when I use TAB key to move to other control, everything works very well.
>

Unless you have a command button with Default set to .T., Enter should move you to the next object if you're in a textbox.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform