How to detect if a letter is lowercase in string?

BlitzMax Forums/BlitzMax Programming/How to detect if a letter is lowercase in string?

AvestheFox(Posted 2011) [#1]
as the topic asks how would you go about determining if a letter in a string is uppercase or lowercase?


AvestheFox(Posted 2011) [#2]
never mind... I was doing things all wrong with the asc("") command :P


xlsior(Posted 2011) [#3]
b$=mid$(a$,10,1)
if b$=upper(b$) then print "Uppercase" else print "Lowercase"


(Very basic, doesn't check for non-alphabet characters)