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

Home » Public Forums » archive » Re: Structures and COMMON blocks
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: Structures and COMMON blocks [message #6001] Tue, 16 April 1996 00:00 Go to previous message
plugge is currently offline  plugge
Messages: 17
Registered: May 1995
Junior Member
In article <316ADC7A.41C6@irc.chmcc.org>, Phil Williams <williams@irc.chmcc.org> writes:
|>I'm developing several widget based apps and have a question concerning
|>the use of structures and common blocks.
|>
|>I have found both of these invaluable, but the problem comes when I want
|>to add a variable to a common block or structure. When I try to
|>recompile the .pro file idl won't let me. Is there another way to do
|>this other than quitting IDL and starting it over?
|>
Phil,
there is no way to enlarge a named common block; but there is a trick to do
it. I use often dummy variables at the end of a block (for example:

COMMON block, var1,var2,var3,v1,v2,v3,v4

where v1,v2,v3,v4 are (unused) dummy variables; if you need an additional
variable in the common block, you can just rename one of these dummies, without
need to exit the current IDL session.

Michel

------------------------------------------------------------ -------------
Michael Plugge _ Fachhochschule Mannheim
Institute for Statistics / \ Hochschule fuer Technik und Gestaltung
and Image Processing / \ Email: plugge@biv7.sr.fh-mannheim.de
Speyerer Str. 4 / \ Tel: 0621 2926208
68163 Mannheim / \ --o /\
Germany / -- - \<,- / \/\
/ \ (_)/ (_) / \/\
------------------------------------------------------------ -------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: True colors and IDL
Next Topic: Structures and COMMON blocks

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

Current Time: Wed Oct 08 15:33:45 PDT 2025

Total time taken to generate the page: 0.00410 seconds