Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Just time fields GUI and time calculations
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01244777
Message ID:
01244779
Views:
23
This message has been marked as the solution to the initial question of the thread.
Hi,

> Can I have datetime fields but only have the time portion for date-entry purposes and then use the same for time calculations ?

You can use an unbound textbox. In the Refresh and GotFocus event load the value from the datetime field into the textbox. In the Valid event store the current value back. To convert between datetime and character, you can use TTOC() and CTOT(). By setting the Inputmask to "99:99:99" you can limit data entry to digits in a time format. You additionally need to check for valid values, though.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform