Example Code

Moving an Active Item in a Tree Control Up and Down the Control Using LabVIEW

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
This code shows how to move an active item up and down a tree control by using a numeric control. The active item will also remain highlighted while it is traversing the tree control.

 
Description
This code uses property nodes to change the row number of an active item in a tree control and to have the active item highlighted when the item is moving in the control.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Specify the row number of item in tree control that you would like to move through the control prior to running the VI.
  2. Run the VI.

 

Additional Information or References
VI Block Diagram

 1.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

LabVIEW Product Marketing Engineer
National Instruments

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