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/