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: 

replace characters in string

Solved!
Go to solution

Hello everyone,

 

Is there any way to index the characters in a string as if it were an array and remove them starting from the second position and on. I just want to end up with the first letter or number so that I can later concatenate strings to it.

 

Thank you for any help!

 

-Michael

0 Kudos
Message 1 of 3
(6,768 Views)
Solution
Accepted by topic author MichaelHadrien

Hi Michael,

 

Yes. Use the "Sring Subset" function. Set the start to 0 (default) and the length to 1.

This will give you the first character of the string.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 3
(6,764 Views)

thank you steve!

0 Kudos
Message 3 of 3
(6,760 Views)