03-20-2016 02:21 PM
New on Labview and Im stuck with figuring out how to determine whether the first character entered in the string is a capital letter between A-Z and Å Ä Ö.
If first character Capital letter -> Led is lit.
03-20-2016 03:37 PM - edited 03-20-2016 03:39 PM
take 1st letter of string and convert it to uppercase. If it equal itself, the letter is capital.
03-20-2016 04:34 PM
It will only handle your A-Z case, but the Lexical Class Function will return a 4 for an uppercase letter.
03-20-2016 05:20 PM
Daywonder a écrit :New on Labview and Im stuck with figuring out how to determine whether the first character entered in the string is a capital letter between A-Z and Å Ä Ö.
If first character Capital letter -> Led is lit.
You need to extract the first character byte after the conversion to byte array. Artem solution will work if you don't need to check that the first character is a letter. Lexical class is the best solution if english is used but will not work with accentuated capital letters.
The following code work for all possible capital letters.
Ben64
03-20-2016 05:29 PM
____
It will only handle your A-Z case, but the Lexical Class Function will return a 4 for an uppercase letter.
______
class works only in Eng
03-24-2016 01:30 PM
Thanks for the replies....