comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: rstrpos: version 5.2 and version 5.3
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: rstrpos: version 5.2 and version 5.3 [message #19094 is a reply to message #19088] Thu, 24 February 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
J.D. Smith (jdsmith@astro.cornell.edu) writes:

> IDL objects to the mentioning of a function it can't find. Simply use
> call_function and it can't complain (how can it object to a string?).
>
> IF Float(!Version.Release) GT 5.2 THEN $
> dot=call_function("StrPos",line,".",/Reverse_Search) $
> ELSE $
> dot=call_function("RStrPos",line, ".")

The problem is not that IDL doesn't like the function.
The problem is that it doesn't like the new keyword:

IDL> dot=call_function("StrPos",'coyote.dat',".",/Reverse_Search)
% Keyword parameters not allowed in call.
% Execution halted at: $MAIN$

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: quoted null character
Next Topic: Frame Grabber

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 05:06:54 PDT 2025

Total time taken to generate the page: 1.68389 seconds