Programmatically Select String or Numeric Data in Control

Updated Nov 8, 2019

Reported In

Software

  • LabVIEW

Issue Details

I want to programmatically select the string data inside a string control, as if I manually highlighted the string text inside the control.

Solution

You can do so by using the String Control Property Node, and setting the following properties. 
  • Write "True" for the "Key Focus" property
  • Write "0" for the "Text: Selection: Start" property
  • Obtain and input the string length for the "Text: Selection: End" property

Additional Information

For a numeric control, you only need to set the "Key Focus" property to "True".

WAS THIS ARTICLE HELPFUL?

Not Helpful