Originally Posted by
baka
u can only use ascii 0-127 when comparing ascii
128-255 are extended ascii code and can be anything depending on your locale.
so those can be all messed up, as u notice 128 is above 146 but in another locale 146 can be above 128.
but another way is to "not" do any chr$ but use safearray and take the "byte" value of the string directly when u compare.
doing so, will not change the string into any locale, it will use the original locale when u created the string (if the string is located in a .dat file example)
so if u plan on using unicode, u will need to work with locale as well.
if u instead just want to use default letters A-Z, a-z those are within 0-127 are always the same in any locale and will always work.