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" <[email protected]>
To   <[email protected]>
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: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Alex Ogan
> Sent: Friday, May 05, 2006 4:08 PM
> To: [email protected]
> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index