Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input masks
Message
From
15/07/2004 10:49:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/07/2004 09:57:16
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00924656
Message ID:
00924686
Views:
8
It seems more convenient to me to save the "project number" as a separate field. This may not apply to your case, but in many similar cases, that is what I would do.

>Hello all,
>I have a textbox that I want to default (read force) a prefix containing an alpha-numeric value such as '1234-0C'. The first 4 numbers come from a project number that I don't want the users to be able to change. I was thinking of using an inputmask...
>
>object.inputmask=str(projnum,4)+'-'+repl('!',10)
>
>It works except when there is a "9" in projnum. Any ideas other than breaking it up into 2 textboxes?.
>
>TIA
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform