Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date in Grid Problem
Message
From
12/06/2009 15:38:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01405629
Message ID:
01405633
Views:
58
>I have a problem with a date in a grid. When a user enters a letter by accident, it crashes with an Operator Mismatch Error. When the date field is in a Textbox, there is no problem, it just will not allow a letter. I tried format/input mask with no success. I must be missing something. Does anyone have any suggestions as to not allow a letter in a date field in a grid so it will not crash? I thought VFP automatically took care of this!
>
>Thanks much,
>
>Bill Todoro

Make sure that the column is explicitly linked to the field, i.e. in Grid.Init
This.Mycolumn.Controlsource='mytable.mydatefield'
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform