Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date textbox
Message
From
14/05/2001 13:37:07
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00506928
Message ID:
00506934
Views:
11
>Hi everybody,
>
>I've just noticed the following behavior in textboxes, which value is set to {}, and I'd like to discuss it:
>
>I have a form and a container class Date_Range with two textboxes with values equal {}. I started to type something in the first textbox, but then without finishing I clicked on command button. The command button code doesn't fire. It fired only after I either deleted, that I typed or finished the typing the correct date. I didn't see any errors message displayed, after I click on the command button (e.g. perhaps, valid of TextBox was not fired ?). An additional info: form has an Error even coded.
>
>Did somebody experience the same behavior and could it be explained?
>
>As I user I was surprised, when I clicked on a button and nothing happened...


You can't enter an invalid date. Fox has always worked like this. The Error event on the form shouldn't fire in this case because the error occured in the textbox. If you SET NOTIFY ON, you'll get a WAIT WINDOW that says "Invalid Date".
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform