Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time
Message
De
09/12/2003 06:49:19
 
 
À
08/12/2003 20:27:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Re: Time
Divers
Thread ID:
00857037
Message ID:
00857113
Vues:
30
Hi Trish.

Does anyone have a control that will validate the input of time?

If you have a copy of 1001 Things You Wanted to Know About Visual FoxPro, we have a time spinner based on the native VFP spinner that does exactly what you want in chapter 4:

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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform