LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading array

I'm reading from Access db and when the second value is read which is an empty string, it overwrites the first value and returns an empty string.
Can anyone tell me what I'm missing...haven't coded for couple years and can't refresh my memory..
 
Thank you~!!
0 Kudos
Message 1 of 2
(2,782 Views)

Your code does not make a lot of sense. Can you explain the FOR loop and built array node?

Do you want to read several values into an array until you reach an empty string? In this case you would need to build your array in a shift register. Append elements unless the string is empty.

If you just want to read a single value, just get rid of the while loop entirely and only read the first value.  😄

0 Kudos
Message 2 of 2
(2,764 Views)