X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 May 2006 04:39 PM by  anon
Bug with 'StrPos'?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 May 2006 04:39 PM
    The followings were what I got from IDL 6.2. But I think I could expect to get 0 and 2, respectively. IDL> print, strpos('safas', 's', /REVERSE_OFFSET) 4 IDL> print, strpos('safas', 'f', /REVERSE_OFFSET) -1

    Deleted User



    New Member


    Posts:
    New Member


    --
    01 May 2006 04:39 PM
    Hi, Try using the POS argument. IDL> print, strpos('safas', 'f',4, /REVERSE_OFFSET) 2 IDL> print, strpos('safas', 's',4, /REVERSE_OFFSET) 0 Ben
    You are not authorized to post a reply.