Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event sequence: When of new object fires before LostFocu
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00143145
Message ID:
00143238
Views:
31
>>The safest bet would be not to spread the code so many places, but a custom property in the form might do the trick
>>
In text2.When
>>IF !Thisform.text1ValidOK
>>  IF !text1.valid()
>>    text1.SetFocus() && or return .f.
>>  ENDIF
>>ENDIF
>>
>
>Sorry, but that makes the hair stand up on the back of my neck. :-) All these events were designed to be fired at certain times, and calling them from each other could make it impossible to debug or maintain later...

Sure, you're the MVP... :-)
Don't get me wrong, I wouldn't use the code above myself, but when here, I try to adjust to others problems. I thought Jim provided pretty useful answer, although it wasn't but a reminder to how things are ment do be done.
Danijel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform