Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement