ORD () and CHR () functions

Peter Bateman ppfb@hotmail.com
Mon, 02 Aug 2004 12:05:57 -0300


;To get the ordinal of X
define CS char * 255 = < your character set minus nul ie start at control-A>
define ORD integer size 2 = index ( CS,  X )

Peter Bateman

>From: Tim Cummings <tim.cummings@frequencymarketing.com>
>To: powerh-l@lists.sowder.com
>Subject: RE: ORD () and CHR () functions
>Date: Mon, 2 Aug 2004 07:47:54 -0400
>
>Mikael,
>
>The CHR() equivalent is the CHARACTERS function:
>
>define esc int*2 = 27
>define escape char*1 = char(esc)
>
>Tim
>
>-----Original Message-----
>From: Mikael.Olesen@qss-uk.com [mailto:Mikael.Olesen@qss-uk.com]
>Sent: Monday, August 02, 2004 6:52 AM
>To: powerh-l@lists.sowder.com
>Subject: ORD () and CHR () functions
>
>
>
>Hello
>
>Cant remember how I get the ASCII value of a character and the other way
>around,
>
>Just like PASCAL's (a real language) ORD () and CHR () functions.
>
>Anyone?
>
>Kind Regards
>
>Mikael Olesen
>
>
>
>r============================ DISCLAIMER =============================
>This message is intended only for the use of the person(s)
>(\"Intended Recipient\") to whom it is addressed. It may contain
>information, which is privileged and confidential. Accordingly
>any dissemination, distribution, copying or other use of this
>message or any of its content by any person other than the Intended
>Recipient may constitute a breach of civil or criminal law and is
>strictly prohibited. If you are not the Intended Recipient, please
>contact the sender as soon as possible.
>
>Reed Business Information Ltd. and its subsidiary companies
>Tel: +44 (0)20 8652 3500
>
>=======================================================================
>
>
>

_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen 
Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.