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

Home » Public Forums » archive » Re: Problem with STRSPLIT using /EXTRACT
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: Problem with STRSPLIT using /EXTRACT [message #25117 is a reply to message #25105] Wed, 16 May 2001 16:26 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Merrilinn Zeppa <zeppa@u.washington.edu> writes:

> I'm using version 5.3 of IDL.
>
> I tested a program in IDLDE using STRSPLIT with /EXTRACT. The program
> worked perfectly. I then incorporated my program in a larger IDL
> program, too large for IDLDE. From the IDL prompt, the tested program
> failed to compile, the error being the /EXTRACT keyword. I looked at the
> definition of strsplit.pro and found no reference to the keyword
> argument /EXTRACT. Anybody know about this?

This sounds suspiciously like a case where your IDL path is not being
set right. If IDL can't find out that STRSPLIT is a function, then it
assumes it's a *variable* instead. That's a problem, because you are
using the /EXTRACT keyword, and you can't subscript variables with a
keyword :-)

So the first question is: what does your !PATH look like? Second
question is, what happens when you ".COMPILE STRSPLIT"? And finally,
if those worked, can you still not compile your original function?

Your question about why /EXTRACT doesn't appear in the definition of
strsplit.pro is actually a separate issue altogether. Those keywords
are passed automatically and implicitly using one of the _EXTRA
mechanisms.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: Re: WTD: Orbital analysis with IDL
Next Topic: clust_wts

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

Current Time: Sat Oct 11 15:51:44 PDT 2025

Total time taken to generate the page: 2.07570 seconds