LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export search results

LV2017SP1 32bit

 

looking for a way on the block diagram to export the results of a text search into a list.

 

static, one time requirement.

estimated hits: about 113

 

use case: need to isolate all table names (td... of a database) used in a case structure on various text queries (in nested sql statement sometimes):

ex.png

 

rigth now, I see there are approximately 113 hits and swipping to them with Ctrl-G is possible.

all the marked text of all hits should be selectable at once somehow - instead of 113 times: mark, copy, paste, come back...

 

probably with another vi that crawls trough this one?

 

thanks in advance for any support

0 Kudos
Message 1 of 3
(404 Views)

You'll likely want to enable VI scripting and use that.  

 

How to enable VI scripting

 

After it's enabled, you will have access to "blue" VIs and property nodes usually hidden that will all VIs to probe the block diagram of other VIs, and change the diagram too.  It would look something like this:

 

Kyle97330_0-1707501144520.png

 

Link to NI general tutorial on VI scripting

 

Link to the specific page in the tutorial covering the "Traverse" function I showed in the example

0 Kudos
Message 2 of 3
(350 Views)

Thanks for that, it guided me to the right direction and helps solving the task!

 

As an addition: the references (vi and string array elements) should also be closed by the vi 'Close Reference'

0 Kudos
Message 3 of 3
(330 Views)