Statalist


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

RE: st: Why was -index()- dropped?


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   RE: st: Why was -index()- dropped?
Date   Thu, 24 Jan 2008 20:52:55 -0000

Thanks to Richard for pointing out -strpos()- (which I should have found
myself). I will remember to substitute -strpos()- for -index()- from now
on. 

Best wishes

Roger


Roger B Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
Web page: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard
Williams
Sent: 24 January 2008 20:45
To: [email protected]; [email protected]
Subject: Re: st: Why was -index()- dropped?

At 03:15 PM 1/24/2008, Newson, Roger B wrote:
>I have a Stata 10 query on string functions. Why is the string function
>-index()- no longer available in Stata 10 (as it was in Stata 9 and
>several previous versions)? I would be surprised if I couldn't find
>substitutes for it on a case-by-case basis, but was there any special
>reason for dropping it?

If I recall correctly - in Stata 9, -index- got the new and improved 
name of -strpos-.  Per StataCorp policy, -index- continued to work in 
Stata 9, but starting in Stata 10 it only works if you are using 
version control.

I think the new and improved names had something to do with 
consistency with Mata.  Personally though, I wish the old names 
continued to work.  As a programmer, you get used to doing things 
certain ways, and it isn't always obvious what the new and improved 
name is.  Heck, Roger is one of the more prolific programmers around, 
and if he gets bit by a change like that you can imagine that others
will too!


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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/

*
*   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