character value
Knox, Dave (Dallas, CSC)
KnoxDa01@unisourcelink.com
Wed, 24 Jul 2002 14:23:20 -0400
Bob
What's you're environment ?
The following works on HP3000 . It parses out the item "X" to MPE and uses the HP ord() function.
I would hope similar could be done on any platform.
def X char*1 = "A" ;or fieldname of choice...
def Y int*2 = ncon(getsystemval("XY")) &
if setsystemval("XY","![ord('" + X + "')]")
rep X Y
go
X Y
A 65
Regards
Dave Knox
-----Original Message-----
From: Bob Comeau [mailto:bcomeau@crossley.ca]
Sent: Wednesday, July 24, 2002 12:47 PM
To: powerh-l@lists. swau. edu
Subject: character value
Does anyone know of a way in quiz to get the ASCII value of a single character returned as a number?
I know how to get from a displayable character from an integer, I need to go the other way.
For instance if a variable contains the letter "A" I would like to be able to that converted to the number 65.
Bob Comeau
Systems Programmer Analyst
Crossley Carpet Mills Ltd.
(902)895-5491 ex 139
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.