From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Ctrl-A to Select All in a String

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

Demonstrates how to implement Ctrl-A support to select all text in a string control.

Description

Demonstrates how to implement Ctrl-A support to select all text in a string control.

Hardware and Software Requirements

LabVIEW 2015 (or compatible)

Steps to Implement or Execute Code

1. Run the VI.
2. Type text in the string.
3. While the string has focus, press Ctrl-A. You should see all the text in the string highlighted.
4. Click Stop to stop the VI.

Additional Information or References

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Darren
Proven Zealot
Proven Zealot
on

FYI, there is a discussion on the DQMH forums here about how to use a simple DQMH module to add Ctrl-A support to an arbitrary number of strings in an arbitrary number of VIs simply with a single subVI.