LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to string subset

Hello I'm using the string subset block, but i want to obtain the substring before the offset,......for example
 
 
initial string=wonderful
offset=4  
I want to obtain wond..........but with this block i obtain erful.
 
What can i do??
 
Thank you very much
 
Larson
0 Kudos
Message 1 of 4
(2,679 Views)
Leave the offset terminal at 0 and wire the 4 to the length terminal.
0 Kudos
Message 2 of 4
(2,674 Views)
Hi Larson,
 
Look at attached Vi
 
regards
 
Dev
 
0 Kudos
Message 3 of 4
(2,671 Views)
Or you could use "Search/Split String" on the "String -> Additional String Functions" pallette.

Simon
0 Kudos
Message 4 of 4
(2,669 Views)