Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: how to refer to a quotation mark in functions


From   Tirthankar Chakravarty <[email protected]>
To   [email protected]
Subject   Re: st: how to refer to a quotation mark in functions
Date   Tue, 12 May 2009 00:15:05 +0100

<>
<>
http://www.stata.com/statalist/archive/2004-10/msg00801.html

/* begin */
local pos=strpos(`""c:\""',`"""')
display "`pos'"
/* end */

T

On Tue, May 12, 2009 at 12:04 AM, Jason Ferris
<[email protected]> wrote:
> I wish to find the position of a quotation mark in a item but Stata
> keeps returning the message "too few quotes"
>
> local pos=strpos("c:\",""")
> display "`pos'"
>
> I except 1 to be displayed
>
> Jason
>
> ------------------------------------------
> DISCLAIMER: This message (including any attachments) is intended solely for the addressee(s) named and may contain confidential or privileged information.
> If you are not the intended recipient, please delete it and notify the sender.
> Views expressed in this message are those of the individual sender,and are not necessarily the views of the Turning Point Alcohol and Drug Centre Inc (ABN: 17 302 055 629).
>
> <a href="http://www.turningpoint.org.au";>Turning Point Alcohol and Drug Centre Inc</a>
>
> Although this message and any attachments have been scanned for viruses by 'Trend Micro InterScan' at the time of sending,
> you are advised to rescan on receipt.
>
> The whole or parts of this email may be subject to copyright of Turning Point Alcohol and Drug Centre Inc (ABN: 17 302 055 629), and/or third parties.
> You can only re-transmit, distribute or use the material if you are authorised to do so.
>
> Please consider the environment before printing this email or attachments.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>



-- 
To every ω-consistent recursive class κ of formulae there correspond
recursive class signs r, such that neither v Gen r nor Neg(v Gen r)
belongs to Flg(κ) (where v is the free variable of r).

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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