Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress peculiarities
Message
From
19/10/2001 09:25:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Keypress peculiarities
Miscellaneous
Thread ID:
00570771
Message ID:
00570771
Views:
39
Greetings all.

A textbox on my form needs to accept only certain alpha/numeric values. If the first entry is a '0' (zero), the TextBox.Value would need to be completed thus: '0EMPT-Y'. Otherwise, the characters will all need to be uppercase alpha like this: 'CAGUK-M' Using ! in Format property and InputMask = 'XXXXX-X', I can get the UPPERCASE and the hyphen in position six, but I need to limit the characters in positions 2-5, and 7 to alpha. I've tried to use KeyPress, but I'm afraid I'm doing something amiss, "'cause it ain't doin' what I want!'" ;-).

Any suggestions would be appreciated.

Thanks,

Tim
Duty is ours, the results are God's - John Quincy Adams
Next
Reply
Map
View

Click here to load this message in the networking platform