Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Time Formats in Grids
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00269680
Message ID:
00269878
Vues:
23
>>HOW CAN I USE JUST THE TIME PORTION OF DATETIME() IN A GRID COLUMN, WHICH CONTROLSOURCE IS A FIELD WITH DATETIME FORMAT?
>
>For display only, you could use the TTOC() function with the ,2 optional parameter rather than the raw field, but that doesn't solve anything if you're entering data there.

I wonder if you could try the following snippet in the GotFocus method:
if set('century')="ON"
this.selstart=10
else
this.selstart=8
endif
nodefault

This positions the cursor at the beginning of the time entry portion of the time datetime field.

Hope this helps,

Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform