Keywords/Parameters and Common Blocks [message #36850] |
Fri, 31 October 2003 01:43  |
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  |
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
|
|
|