Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HH:MM Date in Textbox
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00019749
Message ID:
00019772
Views:
48
>>TIME() does this (but the seconds settings I've tried don't seem to work on it).
>
>NO, TIME() returns the current system time in hh:mm:ss format. If you specify a numeric parameter, it returns also the hundredths of seconds. So, if the parameter is a datetime format (which is in fact a number in the database (8 bytes)) it will return the system time in hh:mm:ss.cc format.
>
You're right, I was just concentrating on getting the textbox to work, and didn't check out the values. Good thing I didn't use that. (s)

>Yes, you must check each char. Do it with InteractiveChange method. It's fired for each change (e.g. user enters 4 digits, it will be fired 4 times). Of course, you must also check in Valid method. It's a little work here, but your doing it only once for a clss and you'll use it everywhere... isn't OOP great?
>
The char idea with the IAC checking seems to be the right one, but a little different, no inputmask. That fouls up the data entry, but I think I'm we're the right direction. When the field is left, when you check valid H & M, you also check len. If 4, insert : for HH:MM, if len = 3, insert to H:MM form, then redisplay. Something like that will work, it looks like.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform