Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing A value from a text box
Message
From
01/02/2002 10:52:14
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00613826
Message ID:
00614046
Views:
33
>Hi Caroline
Thanks for the suggestion. I used something like your idea and it worked well.

Regard,
Carmen
Carmen,
>
>You can try something like the following in that Valid event.
>
>loObject = sys(1270)	&& Get the object currently under the mouse pointer!
>
>if lastkey() = 27 or (type('loObject.Cancel') = 'L' and loObject.Cancel)
>  return .T.
>else
>  return 0
>endif
>
>
>>Hi Steve
>> Again good questions. These human generated numbers must be unique or they won't be accepted by the system. After the order number is in the system the user may change it and yes the changes cascade through the details of the order and the w.i.p. already entered. This has never been done that I can see. The usual approach is to delete the order and create a new one. Thanks for the tip re: return zero. Let me ask you this. While I can now keep them a captive audience until an order number is entered, I also have an abort button that should allow them a way out. If I use return .f., or return zero, it won't let me at the abort button. Any thoughts? Thanks again Steve.
Previous
Reply
Map
View

Click here to load this message in the networking platform