General information
Category:
Coding, syntax & commands
>>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only