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

Home » Public Forums » archive » Keywords/Parameters and Common Blocks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Keywords/Parameters and Common Blocks [message #36850] Fri, 31 October 2003 01:43 Go to next message
Nuno Oliveira is currently offline  Nuno Oliveira
Messages: 75
Registered: October 2003
Member
Hi.



Sometimes I want use keyword variables (or parameters) of a function or
procedure in routines not only in the main program (of the
function/procedure) but also on subroutines (as often happens with routine
events). Intuitively I put the keyword variables on a block shared with the
subroutine that I also want to use those variables. But it gives an error;
that I can't remember now. It forces me to create new variables where I put
the contents of the keyword variables, and then those variables I created in
the program I can share with subroutines with common block.



Is there a way that I can achieve this without making as many attributions
as many keyword variables I want to share in COMMON blocks?
Re: Keywords/Parameters and Common Blocks [message #36906 is a reply to message #36850] Tue, 04 November 2003 06:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nuno Oliveira writes:

> So I hope I don't bore you too much in the future, but I'm getting the idea
> that this group is very useful to me, because some things are not too
> obvious in the tutorials (and I still didn't touch the Objects)

Well, you are not the first person to make this observation. :-)

I've been working on an new article the past couple of days
and I found a promising tip on the subject I'm researching
on the RSI web page. But the code that accompanied the tip
was just about the godawfullest IDL code you could imagine.
So bad, it made me embarrassed. Which, given some of the
clap-trap I've published, is reasonably hard to do.

So, yes, sometimes the best place is NOT the tutorials. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interpolation problem
Next Topic: Dot above letter eg. Mdot in IDL

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

Current Time: Wed Oct 08 18:53:25 PDT 2025

Total time taken to generate the page: 0.00468 seconds