Some people get into using ASCII codes instead, but I think they're masochists.
Well done, Colin.
Masochistic, and, if they're working in a language other than English, buggy.
The lazy way is to subtract 32 from the ASCII value. E.g.:
put numtochar(chartonum("a") - 32) "A"
Colin's method will work with any language, providing you use the appropriate alphabet.
But a Kerry post wouldn't be complete without pointing out that ASCII is
an outdated, 7-bit standard. English Windows use ANSI, an 8-bit standard
equivalent to the ISO 8859.1 standard.
If you only need those characters for display and REALLY want to be lazy, use a text member and set its fontstyle:
member(textmember).fontstyle = [#allcaps]
Of course, this precludes checking those strings for accuracy if you are checking for case-sensitivity (the character codes remain the same, you're just displaying the other case).
There's also a fontstyle called #smallcaps, and one called #lowercase, and a few others that have escaped my instant memory. They are doc'ed somewhere (probably an appendix to one of the ref books I own).
Not sure how well this works with upper ansi characters - haven't tested.
2cents, kurt
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
