Re: Structures and COMMON blocks [message #6001] |
Tue, 16 April 1996 00:00  |
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 / -- - \<,- / \/\
/ \ (_)/ (_) / \/\
------------------------------------------------------------ -------------
|
|
|