LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keyfocus on first element of array.

Hi,
 
Anyone knows how to keyfocus onto the first element of the array?
Or anyway to get around that?
 
Thank you.
0 Kudos
Message 1 of 6
(2,531 Views)
You need to access the array element reference, as shown in this example:



This will focus on the first element.

Note that the Array Element property returns a reference to the element that's currently indexed. If you need to focus on a different element you need to temporarily set the Index Values property to the index you want to  focus on, get the reference for that element, and then set the Index Values back to what it was.


Message Edited by smercurio_fc on 06-02-2008 10:14 AM
0 Kudos
Message 2 of 6
(2,525 Views)
Thank you SM, I will give this a try.
0 Kudos
Message 3 of 6
(2,508 Views)

Hi smercurio_fc,

Could you elaborate on the second paragraph?  If possible a diagram.  I tried a bit with index values but not successful.

Thank you.

0 Kudos
Message 4 of 6
(2,500 Views)
Actually, I just realized that part isn't going to work since the array element reference will always be the same. You can use what I showed you to focus on the first element. Then, if you want to move to another element you can simulate keystrokes to "tab" over the elements, as explained here.
0 Kudos
Message 5 of 6
(2,498 Views)
Thanks SM.
0 Kudos
Message 6 of 6
(2,473 Views)