Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inputmask for hour
Message
 
To
15/01/2005 11:40:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
00977403
Message ID:
00977465
Views:
33
>>Hilmar,
>>
>>Back in the late eighties, I decided that since there were two ways to use an input mask for numeric input (the other is "99:99"), I'd differentiate how I'd use them.
>>
>>If the control source was, indeed, numeric, then I'd use the "#" character. If, however, the control source was actually text, such as a zip code or, in your case, a time, then I'd use "9".
>>
>>This gives me the advantage of knowing, simply by looking at the mask, what data type the control source is.
>
>The thing I found really weird was how VFP reacted to my (admittedly invalid) InputMask, "00:00". The form ran normally up to a certain point, but when I clicked or tabbed into the time field, the focus jumped to the next object in the TabOrder! So, I couldn't even select the object.

Hilmar,

I read that. In looking over the documentation, there's no indication of what might happen if, as in your case, an invalid character is used.

You might want to let MS know about this through their web site. I'm not sure if Esther Fan is still doing doc review, otherwise, I'd suggest that you email her about it.

I did notice that there is one difference between the "#" and "9" characters. The former allows a space to be entered. The latter does not.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform