Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control to enter duration
Message
 
 
To
25/05/2007 18:04:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01228473
Message ID:
01229076
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform