ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,884 Views)
Leave the offset terminal at 0 and wire the 4 to the length terminal.
0 Kudos
Message 2 of 4
(2,879 Views)
Hi Larson,
 
Look at attached Vi
 
regards
 
Dev
 
0 Kudos
Message 3 of 4
(2,876 Views)
Or you could use "Search/Split String" on the "String -> Additional String Functions" pallette.

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