Setting Maximum numer of Characters in edit box

Version 1.1.0.0 (1.51 KB) by 123456
Shows how to limit the number of characters in an edit field using simple GUI programming.
320 Downloads
Updated 29 Oct 2013

View License

This program shows how to limit the number of characters that can be input in an edit box, without using JAVA.

By default, calling limit_text() without any arguments will open a figure window with an edit box in which a user can only type a maximum of 8 characters.

Calling limit_text(n) will open a similar window but with the maximum number of characters set to n.

Cite As

123456 (2024). Setting Maximum numer of Characters in edit box (https://www.mathworks.com/matlabcentral/fileexchange/44085-setting-maximum-numer-of-characters-in-edit-box), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Fixed the title

1.0.0.0