LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capital letter with string to byte array

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.

0 Kudos
Message 1 of 6
(3,790 Views)

take 1st letter of string and convert it to uppercase. If it equal itself, the letter is capital.

 

capital.png

0 Kudos
Message 2 of 6
(3,764 Views)

It will only handle your A-Z case, but the Lexical Class Function will return a 4 for an uppercase letter.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(3,733 Views)

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.

 

IsCapital.png

 

Ben64

Message 4 of 6
(3,715 Views)

:

____

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

 

capital.png

 

Message 5 of 6
(3,696 Views)

Thanks for the replies....

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