Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the next filed?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00056004
Message ID:
00056032
Views:
29
>>Hi everybody!
>>
>>Is there a way, to determine in a textbox valid routin, that which the next object is? I don't mean the "next" as in order, but the one, whose activation caused the valid routin to fire.
>>
>>The reason is, that sometimes I don't want to run the valid routin to go. E.g. when user push Exit button, Or Cancel button, when there is unnecesarry to validate the contents of the textbox. But How can I determine, which object on screen caused the valid routin to go?
>>I thought, that the validation should make in the when event of all other objects, but it is unconvient.
>>Any comment?
>>
>>TIA
>>
>>BB
>
>IMHO, there are no normal ways to do this, and this is one more reason to move validation into one place (e.g. cmdSave.click). However, you can make some trick using cmdExit.MouseMove event.

The reason for this Bela, is that the validation will be fired BEFORE the click. It is not the click of the button that fires the validation. It's the object's losing focus that fires the validation. Therefore, it's impossible to know at that point, the point of the focus leaving that field, where it's going next.

I'd agree with Edward on this. A CheckSave method at the form level is better.

JR
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com
(941) 743-0108
(800) 246-5488
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform