Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Last Character

Hello,

 

In the next VI, I read the first character in a string but I was wondering if there is a constant to tell LabView that I want the last character. Suppose I do not know the length of the string.

 

Thanks.

--Luis

0 Kudos
Message 1 of 3
(7,366 Views)
I don't think there is a node to help you determine that. You could use Rotate String node but the efficiency of a String Length would be better I believe.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(7,360 Views)

Here are a couple of ways to get last character.  Unsure if one would be better than the other for long strings.

 

Message Edited by Wayne.C on 05-13-2009 02:34 PM
Message 3 of 3
(7,315 Views)