Convert char
7 messages in this thread
Hello, Can someone tell me how I can keep a letter in lowercase after the pull
command? Any letter I type in this program ALWAYS comes out with the uppercase
value. Obviously not what I need.
/* ARexx Convert argument */ say "Type character to be
converted." pull char say " Character Decimal Hex Binary" say '
'char' 'c2d(char)' c2x(char)' 'c2b(char)
Thanks for the hand…..Henry Williams
Henry,
The ARexx PULL instruction is a shorthand for PARSE UPPER PULL, so it always
converts characters to uppercase (see p. 36 of the ARexx manual.) You can use
the PARSE PULL instruction to preserve the case of the characters.
-Bill Hawes
re: Parse upper pull…..Thanks Bill
Regards Henry
What's the latest version of ARexx and Wshell, for those of us who bought it as
an add-on?
The current version of ARexx is V1.15, and the WShell software is WShell 2.0.
-Bill Hawes
Henry
It's really simple, the PULL instruction is in fact "shorthand" for PARSE PULL
UPPER.
If you do not want the uppercase conversion, use:
PARSE PULL char
instead of:
PULL char
It seems to me that what you need is some decent ARexx docs.
Alex
Thanks for the hand Alex. You are probably right about needing a good Arexx
book to learn from. Presently I'm putting most of my time into learning C now.
Arexx will be next. Regards
Henry