LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append successive Letters onto the end of a string

I'm trying to create a simple subVI that appends the next letter (A,B,etc) to a string, and removes the previous one if possible.
 
Input: a string. The base string will always consist of a series of letters followed by a series of numbers, but the subVI may be called multiple times
 
I don't know how to check if the last position in the string is a 'letter' as opposed to a 'number', and I'm not sure how to increment a letter in LabVIEW.
 
This is the first coding situation I've reached where the solution seems more obvious in C++ or Java than in LabVIEW.
0 Kudos
Message 1 of 3
(3,104 Views)
It might be easier to switch the string into byte arrays. Add one to the last character.
0 Kudos
Message 2 of 3
(3,098 Views)

Thank you! It increments the letter, which is what I needed. I can use Lexical Class on the last digit of the string and check if it is equal to 4 to find out if there is already an uppercase letter on the end.

0 Kudos
Message 3 of 3
(3,074 Views)