11-02-2010 11:54 AM
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
11-02-2010 12:16 PM
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.
11-02-2010 12:18 PM
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).