textbox length check if odd or even?

cardmaker

Member
Joined
Jan 12, 2019
Messages
21
Programming Experience
Beginner
hello, how can i determine if a string length (not the number itself) in a textbox.Text.Length is odd or even?
example:
1A2B //odd
1A2B3 //even
many thanks
 
Sorry for the pun, but that is really odd.

How did you determine that "1A2B" is odd? It has 4 characters. 4 is even. Likewise, you say that "1A2B3" is even. It has 5 characters. 5 is odd.
 
Back
Top Bottom