Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper Date Mask Usage
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00270464
Message ID:
00270614
Views:
25
That worked. Thanks Bill

>>I have a TextBox with the ControlSource pointing to a date field of a table. The date format is set to "R" and the InputMask is set to "99/99/9999 99:99:00 AA". The first entry into this TextBox works as expected. The first keystroke clears the previous entry if one exist and displays the mask skipping over the format characters as you enter data. The next entry displays as the first but now characters are pushed to the right as keystrokes are entered and the mask is ignored.
>>How can this be avoided?
>>
>>Also, I noticed in the builder there is a prompt for “Data type”. It is Currently set for “Character”. I tried setting it to “Date” but it didn’t make any difference.
>
>Since you're binding the TextBox to a Date(Time) field, why not just set the Format property to "D" ( SET DATE format ) and not specify any InputMask? The native format of the field should cover it. This is what I have done in the past and seems to work pretty well.
>
>Bill
Alan Trosky
MIS Director
Pennsylvania Bar Association
Harrisburg PA 17108
Previous
Reply
Map
View

Click here to load this message in the networking platform