LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recall Recent String Inputs

Hi There,

 

I am in the process of implementing a communications utility using LabVIEW.

 

For a given string control, is there an easy a way of recalling recent entries, in a similar style to the way the Command Prompt allows recent entries to be recalled by pressing the "up" arrow?

 

Many Thanks,

 

Dan

Dan
CLD
0 Kudos
Message 1 of 3
(2,135 Views)

No easy way.

 

You'd have to program that functionality yourself.  You would probably need an Event structure to handle the Key Down? event to determine when your up or down arrow was pressed.  You'd also seem some code that would maintain an array of history and be able to add new strings to the end of the array if new data was entered.

Message 2 of 3
(2,121 Views)

You can use an event structure. Register an event for when the user changes value of the string control, store that to a queue or array. Then register an event for the keyboard button you want (up) and when that is pressed and the control is highlighted (perform this check when the value of the up button changes) and then start writing previous string control values from the queue if in fact the up button was pressed while the string control was focused on (blinking cursor in the box).

 

 

---------------------------------
[will work for kudos]
0 Kudos
Message 3 of 3
(2,119 Views)