Overview:
This VI shows how to set a limit of the maximum number of entered characters in a String control.
Description:
This VI will only accept characters written to the String control when the limit of characters has not been exceeded, and will discard further key strokes. A "Key Down?" event on the String control is used to register when the user is typing a character. If maximum number of characters is exceeded, the Key Down event will be discarded resulting in no further characters.
Requirements:
Steps to Implement or Execute Code:
Additional Information or References:
"**This document has been updated to meet the current required format for the NI Code Exchange.**"
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Very Handy Thanks for the post