From: D De Villiers Date: 2002-01-24T02:45:18+09:00 Subject: Re: Return the ASCII code ? Thanks Alot! For the replies guys ! :-) David Alan Black wrote: >Yes, though the ? only works with character literals (or perhaps >various eval tricks). Whereas you can do: > str = "Hi" > str[0] This will only return the ASCII code for the "H" character (72) not the "i" character. Martin DeMello wrote: >A fairly trivial RCR: given the frequency with which this gets asked, is >there any reason not to add a String#asc method? Ok! You can add a String#asc method but Why? If you can only use the question (?) mark or str[0]. Regards, Lennie De Villiers ICQ# 57008830 Moderator: news:comp.sources.delphi PocketStudio Professional Pocket-Technologies.Inc - www.pocket-technologies.com Write PalmOS Applications With Your Delphi Skills! PL/I for Palm Project: ---------------------- http://www.crosswinds.net/~lennie2000/comp/PLI_Palm/ Discussion Forum: http://groups.yahoo.com/group/PLI_Palm