• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

Limiting characters input in UNBOUND txtBox?

Hi,

How can I limit the characters input into an unbound txtBox, say, to only four characters?  I found a few solutions here, however, they allow the user to input more than the alloted amount of characters within the txtBox -- I'd like to limit the number of characters the txtBox holds AND limit the number that can be typed into it (both would be 4 characters in this instance).

Thanks,
Ed
0
MICHAED
Asked:
MICHAED
1 Solution
 
JohnK813Commented:
I can't seem to find a textbox property that does this (of course, I may have just missed something).  But, you probably could create a custom Input Mask and use it for your text box.
0
 
ColosseoCommented:
Hi

how about setting the Input Mask of the textfield to aaaa

Cheers

Scott
0
 
davidrichardsonCommented:
0
 
MICHAEDAuthor Commented:
Hi David,

That's just what I need.

Thanks all!

Ed
0
 
davidrichardsonCommented:
No Problem
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now