Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding Controls to ADO Recordset
Message
De
24/05/2001 09:49:03
 
 
À
22/05/2001 22:53:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510179
Message ID:
00510866
Vues:
18
>Hang on...
>
>It works fine for numbers but not dates!
>
>Since SQL Server does not have a date field type (only a datetime), the ADO field is a datetime and does not honor the '99/99/9999' Input Mask setting. It is showing the time portion as well.
>

I don't use the controlsource for situations like this, I 'custom' bind the control by putting code in the refresh and valid methods:

Refresh:
THIS.Value = TTOD(THISFORM.oRS.Fields("myDateTime").Value)

Valid:
THISFORM.oRS.Fields("myDateTime").Value = DTOT(THIS.Value)
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform