From: Jack Dempsey Date: 2002-01-22T02:43:06+09:00 Subject: RE: Return the ASCII code ? by accessing the character directly: "A test"[0] Jack > -----Original Message----- > From: D De Villiers [mailto:ddevilliers@lando.co.za] > Sent: Monday, January 21, 2002 12:08 PM > To: ruby-talk ML > Subject: Return the ASCII code ? > > > Hello! > > Newbie's question: > > In the Integer class you can return string containing the ASCII character > represented by the receiver's value: > > 65.chr -> "A" > > How can you get the ASCII code from a character ? With something like: > > "A".asc -> 65 > > The String class doesn't seam to have such a method (asc ?) or anything > similar. > > 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 > > > >