LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Take and delete a String from another String

Solved!
Go to solution

I have original input string= 111100001111

I need to Take for example the least 4 bits .... Output= 1111

and to be removed from the original input string so the original input string= 11110000 

 

I am trying to make a generic one but the point is that I can not delete subset that I take from the original input String.  

  

How can I take and delete from a string in the same time? 

Message 1 of 4
(2,491 Views)

Something about this makes me think that a string isn't the proper data type to be using, but this does what you've asked.

 

string.png

 

That't the "Search/Split String" primitive.  You'll have to do some math if you want the last four characthers (not "bits") of a variable-length string.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 4
(2,481 Views)

Can I find a way to update the String constant "1111000011110000" with the" match + rest of string" after each loop iteration ?

 

0 Kudos
Message 3 of 4
(2,457 Views)
Solution
Accepted by topic author MarinaNashaat

Something like this?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 4
(2,445 Views)