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

Home » Public Forums » archive » Re: passing strings as arguments?
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: passing strings as arguments? [message #25366 is a reply to message #25226] Mon, 04 June 2001 23:41 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Mike Chinander wrote:
>
> In article <yx6h3d9gufti.fsf@socrates.Berkeley.EDU>,
> <noymer@socrates.Berkeley.EDU> wrote:
>> I am using Ronn Kling's PLOTSYM, the usage of which is:
>>
>> plot,x,y,psym=plotsym(/circle,scale=2,/fill)
>>
>> instead of /circle, one could use /box, /triangle, etc...
>>
>> I have something like:
>>
>> IF (condition) THEN myshape=string('/circle') ELSE
>> myshape=string('/triangle')
>> ENDIF
>>
>> and I want to pass the string "myshape" to plotsym as the
>> first argument but I can't figure out how to do this in IDL 5.3.
>>
>> It seems not to like strings being passed there.
>>
>> TIA,
>> Andrew
>
> You could use the EXECUTE function. Something like
>
> result=EXECUTE('plot,x,y,psym=plotsym('+myshape+',scale=2,/f ill)')
>
> Hope that helps,

Remember if you are using the EXECUTE you are not able
to run the code by runtime.

regards

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
=============================================
a IDL library at ForschungsZentrum J�lich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: trouble compiling AIM routines (mac files on windows?)
Next Topic: Re: thick = 2 and postscript output

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

Current Time: Fri Oct 10 01:58:54 PDT 2025

Total time taken to generate the page: 1.36005 seconds