To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI counts the number of characters you’ve typed.
Description
To count the number of characters in a control, the user can either press Enter or click on a different area of the front panel. If you want to count the characters in the control as you typing but without pressing Enter, right-click on the control and select the "Update Value While Typing".
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.
The Property Update Value While Typing also changes the behavior of the control. It is not possible anymore to cancel changing the value by pressing escape. If this is not desired, use the key down event and read the Property Text.Text to get the current shown text.