Re: Keyword UNAME not allowed in call to: CW_FSLIDER [message #85717 is a reply to message #85713] |
Thu, 29 August 2013 05:49   |
Søren Frimann
Messages: 13 Registered: November 2010
|
Junior Member |
|
|
Den torsdag den 29. august 2013 14.25.28 UTC+2 skrev David Fanning:
> Søren Frimann writes:
>
>
>
>> I'm having a very weird problem in IDL.
>
>>
>
>> I have a large widget base program which is calling the IDL function CW_FSLIDER, among others using the keyword uname.
>
>>
>
>> However IDL complains that % Keyword UNAME not allowed in call to: CW_FSLIDER
>
>>
>
>> This has worked for me before on a linux machine running IDL 7. I am now on a mac running IDL 8.2
>
>>
>
>> I have checked the documentation, and even the .pro file in the lib directory, and UNAME is a valid keyword, and it is also used appropriately. I'm really at a loss on what could be wrong.
>
>
>
> My guess is "something else". :-)
>
>
>
> Are you sure the widget ID you are using is pointing to the widget you
>
> think it is? This kind of thing is almost certain to turn out to be a
>
> programmer error.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Unfortunately I'm not sure of anything. I have no experience on writing widget based idl programs, and is merely using somebody else's code :-(
the only thing I know for sure is that it did work once upon a time, but I'll try to have a look at what you're suggesting.
I am however still very puzzled about the way in which this is failing. If I try to call CW_FSLIDER from the prompt it will complain that the widget specifier is invalid (clear enough, I'm not giving it a proper input). If I then give it the uname keyword it'll mention nothing about the invalid widget specifier, but go straight to uname not allowed in call to CW_FSLIDER. I still think that is very strange :-|
|
|
|