Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tricky textbox scenario
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01199526
Message ID:
01199585
Views:
18
>It's gotten to where folks do not bother with leading zeros. It seems to me that "this.value" in KeyPress event does not get fully evaluated with the latest char that is entered which is the "0".

Not sure why you want to do this in Keypress event instead of LostFocus or Valid, but I would do this;
*Textbox.Keypress()
DoDefault() && Let the textbox process the keypress and update the value property

* Now do your checking

NODEFAULT && Prevent further processing
Previous
Reply
Map
View

Click here to load this message in the networking platform