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

Home » Public Forums » archive » Re: Dumb Dumb Question
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: Dumb Dumb Question [message #13557 is a reply to message #13554] Wed, 18 November 1998 00:00 Go to previous messageGo to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Colin Rosenthal wrote:
>
> This may be really stupid, but is there a way around the following
> feature:
>
> pro x_test,x=x,x2=x2
> if n_elements(x) ne 0 then print, 'x=',x
> if n_elements(x2) ne 0 then print, 'x2=',x2
> end
>
> when I run it with
>> x_test,x=1
> I get
> % Ambiguous keyword abbreviation: X.
> % Execution halted at: $MAIN$
>
> Does this mean no IDL procedure will ever work if one keyword is a left
> substring of another keyword? Can I force IDL to interpret the "x" as "x"
> and not an ambiguous abbreviation for "x2"?

According to the IDL 5.1 online help under 'Building IDL Applications |
Defining Procedures and Functions | Parameters', it says

"When calling a routine with a keyword parameter, you can abbreviate the
keyword to its shortest, unambiguous abbrevation".

Cheers,
Liam.

---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
1225 W. Dayton St., Madison WI 53706, USA
Phone (608) 265-5358, Fax (608) 262-5974
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to shade region of 2-D plot
Next Topic: Re: how do I do *that*?

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

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

Total time taken to generate the page: 1.52034 seconds