From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

match first string

Solved!
Go to solution

Hi all,

 

Anyone have any example VI for "match string first" function? 

 

Thank you 🙂 

0 Kudos
Message 1 of 6
(2,851 Views)

 

Hi,

try placing this snipped on a block diagram:

 

 

prefixes.png

 

Regards,

Marco

 

0 Kudos
Message 2 of 6
(2,835 Views)

Thank you! Is there any way to set array to case insensitive? 🙂

0 Kudos
Message 3 of 6
(2,833 Views)

There is no option to make it insensitive instead you can convert both the array and the string to upper case and pass it.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 6
(2,825 Views)
Solution
Accepted by joseleen

Something like that should do (almost) the trick.

Regards,

Marco

p.s. almost because the output string will be lowercase.

 

prefixes_2.png

0 Kudos
Message 5 of 6
(2,824 Views)

Is there a way that I can use a variant for string?

Because I need to check for 4 strings instead of only 1 string to match.

0 Kudos
Message 6 of 6
(2,750 Views)