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

Home » Public Forums » archive » Common block conumdrum
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: Common block conumdrum [message #8446 is a reply to message #8355] Tue, 04 March 1997 00:00 Go to previous messageGo to previous message
brian.jackel is currently offline  brian.jackel
Messages: 23
Registered: May 1996
Junior Member
In article <5ffnnr$o0g@gap.cco.caltech.edu> williams@skrymir.srl.caltech.edu (Daniel Williams) writes:

> When developing programs in IDL, I often work with common blocks.
> However, if I try to change the definition of an existing common
> block, I get an error because it IDL thinks that I am trying to use a
> pre-existing common block in a naughty manner. According to the
> user's manual (v3.6 p6-10) this is what IDL should do.
> However, when creating new programs, I often want to change the
> definition of the common block as the program developes. How can I do
> this, short of exiting IDL and starting over? Is there some "delvar"
> equivalent for deleting common blocks or programs from memory?

For a quick hack, define the common block as

COMMON MYBLOCK,var1,var2,var3,dum1,dum2,dum3,dum4,dum5

with a bunch of dummy assignments tacked on. Then, when you
have new variables, just rename one of the dummy variables. This,
combined with the use of structures, is what I do when I'm writing
something new and the common block keeps changing. Not quite
what you were looking for, but it usually does the trick.

Brian Jackel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Command line history in IDLWAVE shell
Next Topic: Debugging overload

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

Current Time: Sat Oct 11 21:37:54 PDT 2025

Total time taken to generate the page: 1.28098 seconds