[Gambas-user] String length of Key.Text

zxMarce d4t4full at ...626...
Thu Oct 15 02:43:33 CEST 2015


Hey, don't thank me, it was already that way when I came in! 

Now seriously, all printable ASCII are *&H20* (32 dec, corresponds to the
*SPACE*) to *&H7E* (126, corresponds to the tilde "*~*"), *&H7F* being
non-printable ASCII *DEL*.

All 7-bit codes below *&H20* (space) and above *&H7E* are non-printable, but
of course, the almighty IBM PC "extended" the original 7-bit ASCII to full
8-bit, adding accents, making some nice table graphs, math symbols and so on
starting at *&H80* (128 dec) up to *&HFF* (255 dec).

So, in summary, codes *&H20*-*&H7E* are 100% printable. Codes *&H80*-*&HFF*
'may be' printable, but what you see depends on the system's several things,
like what the hell the selected font has drawn there, and the font
localisation (western, east asian, cyrillic, etc).
Any other symbol may print like *Ctrl-XXX*, print rubbish, or simply print
nothing at all.

One of the nice rules about ASCII is that all numerals have 'round' (or
adequate) hex codes: *&H30* is "*0*", *&H31* is "*1*", and so on up to
*&H39* for "*9*". In decimal, these codes are of no help (*&H30* is *48*
dec).

Hope it helps,
zxMarce.





--
View this message in context: http://gambas.8142.n7.nabble.com/String-length-of-Key-Text-tp54021p54049.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list