Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: inverse of char(n)?


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: inverse of char(n)?
Date   Fri, 5 May 2006 16:22:53 -0500

Yes, see
 
[M-5] ascii() -- Manipulate ASCII codes

For example:

. mata: ascii("?")
  63

Scott


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Alex Ogan
> Sent: Friday, May 05, 2006 4:08 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: inverse of char(n)?
> 
> Is there a builtin or downloadable function that is the inverse of
> char(n)?  That is, a function which returns the ascii code corresponding
> to the one-character string it is passed?
> 
> I've searched a bit but not found it.
> 
> Thanks,
> Alex


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index