From: Holden Glova Date: 2002-01-22T15:32:44+09:00 Subject: Re: Return the ASCII code ? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Jan 2002 06:07, D De Villiers wrote: > 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 Hi Lennie, is this what you want? irb(main):003:0> "A"[0] 65 irb(main):004:0> "A"[0].type Fixnum - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8TQhH+mF116Lw2cQRAr8FAKCCCI2Tj7swPlYWa4s2/FtRKK6y8QCfY+Kt 4Ro5XYIzudX3mzfuu5PjC3I= =zOdO -----END PGP SIGNATURE-----