Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date in Grid Problem
Message
De
12/06/2009 15:38:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01405629
Message ID:
01405633
Vues:
59
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform