Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control to enter duration
Message
 
 
À
25/05/2007 18:04:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01228473
Message ID:
01229076
Vues:
12
>Nadya,
>
>One textbox will do
>
>It holds one integer
>
>Set
>- its value to 0
>- format to RL
>- Inputmask to 99:99
>
>- Valid event to
>
>if( (int(this.value/100) > 24) or ( mod(this.Value,100) > 59) )
>	wait window nowait '00:00 - 23:59'
>	return 0
>endif
>
>
>Easily 'upgraded' to hh:mm:ss ( 99:99:99 )

I quickly tried this solution, but it's a bit inconvenient for the input if, for example, I want to enter 1:10 (one hour 10 minutes) I asked for re-newing a subscription...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform