Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input Mask question
Message
From
13/02/2002 17:39:27
 
 
To
13/02/2002 15:32:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00619661
Message ID:
00619778
Views:
19
Hi Chris.

Thanks for the suggestion Nadya. Unfortunately that class is for 12 hour time. I need 24 hour time. :(

If you happen to have a copy of 1001 Things You Wanted to Know About VFP we have a 24 time spinner class in Chapter 4 that does exactly what you want. I would post some of the code here, but there is really quite a bit of it in the class.

The true time spinner (Example: CH04.VCX::spnTime)
This control looks and acts just like the time spinner you see when using the Date/Time Picker ActiveX control that ships with Visual Studio. However, it has several features that make it more generally useful than the ActiveX control. First, this control does not require that it be bound to a field of the DateTime data type. As we have said, the best format for storing user entered time is in a character field formatted to include the universal ‘:’ time separator. The control can be configured to display and recognize either a 5-character ‘hh:mm’ format or a full 8-character ‘hh:mm:ss’ format and update either appropriately. This is controlled by a single property, lShowSeconds. Finally, because this is a native Visual FoxPro control it does not suffer from the inherent problems that haunt ActiveX controls with respect to the multiple versions of specific windows DLLs, nor are there any problems associated with registering the control.

Another alternative would be to use the Data and Time Picker activeX control that ships with VFP. You set its format property to 2-dtpTime to display only the time portion of the date.
Previous
Reply
Map
View

Click here to load this message in the networking platform