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

Re: rstrpos: version 5.2 and version 5.3



davidf@dfanning.com (David Fanning) writes:
> I resorted to this after first trying something like this:
> 

    FORWARD_FUNCTION STRPOS, RSTRPOS

>   IF Float(!Version.Release) GT 5.2 THEN BEGIN
> 	dot = StrPos(line, ".", /Reverse_Search)
>   ENDIF ELSE BEGIN
>       dot = RStrPos(line, ".")
>   ENDELSE
> 
> Although that *seemed* like a good idea at the time,
> I found that the line won't compile in versions of
> IDL older than IDL 5.3. :-(

The above FORWARD_FUNCTION declaration should solve your problems, no?

Craig


-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------