Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Time Formats in Grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00269680
Message ID:
00269878
Views:
24
>>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
Map
View

Click here to load this message in the networking platform