LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ado tool variant to string array

Hi
 
im working with the ADO tool. When in execute a query i get a variant output. But i like to have a string array output. I modified the Ado subvis, but the problem is that when i readout the string array the last cloumn is empty. Does someone knows howto conbvert the variant output to a string array?
 
thnx
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 1 of 4
(3,587 Views)

If you mean the DB toolkit, then it outputs a 2D array of variant. You need to wire it into 2 nested auto-indexed for loops and convert it inside.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,582 Views)
thnx, i just solved the problem myself 😉 you can just use the variant to data and wire a 2d string array tot the type..
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 3 of 4
(3,580 Views)

Interesting.

At least in LV 7.0, you can only do that with the Variant to Data primitive and not with the DB Variant to Data primitive.

Must have been what threw me off.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(3,574 Views)