LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find a character in a string

Solved!
Go to solution

I know that I asked before for "B" but I don´t know what happens I can´t get it

I tryed like this

array 2.PNG

0 Kudos
Message 11 of 37
(1,727 Views)

I got it, sorry😔 I was messing things

0 Kudos
Message 12 of 37
(1,726 Views)

Sorry for messing..... I am trying to find an "A" that is not in the first posaition and it doesn´t work

array3.PNG

0 Kudos
Message 13 of 37
(1,725 Views)

Hi 99,

 

I already (explicitely) mentioned Search1DArray:

check.png

You also might use MatchPattern on your string input, no need to go to U8 array just for searching…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 37
(1,720 Views)

thank you so much for helping me!

And how can I show the answer in one array of buttons?

0 Kudos
Message 15 of 37
(1,712 Views)

Hello,

I have one array and I want to find if any box of the array has the letter "P", but only the letter "P". How can I do it?

0 Kudos
Message 16 of 37
(1,726 Views)

Hi 99,

 

so you tried to start even one more new thread just because you now want to search for "P" instead of "B" or "A"???

 

Come on…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 37
(1,721 Views)

But know I want to find in one array no in a string. I want if any box of the array has the letter "P"

0 Kudos
Message 18 of 37
(1,715 Views)

Hi 99,

 


@labview99 wrote:

But know I want to find in one array no in a string.


Ok, an array of strings instead of a scalar string element…

 

So now you are asking for very basic LabVIEW stuff like autoindexing loops?

Really? After all those advices to take the Training resources offered in the header of the LabVIEW board?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 19 of 37
(1,710 Views)

I am trying to turn on the  button of the array when I found one "A" in the string and I continue without knowing how to do. Can you help me please

0 Kudos
Message 20 of 37
(1,693 Views)