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

Home » Public Forums » archive » 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: Common blocks [message #4120 is a reply to message #3202] Tue, 02 May 1995 00:00 Go to previous messageGo to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <9505021847.AA14200@peace.med.ohio-state.edu>, phil@peace.med.ohio-state.edu (Phil) writes:
> I got a ? for y'all. I know how to use common blocks in procedures
> and functions but don't know hoe to do the following. Here's the
> scenario:
>
> 1) run program w/ a common block (it's a widget)
> 2) exit the widget
> 3) access the common block from the command line via
> IDL> common blockname
>
> Here's my ?. How do I get out of the common block and back to the
> 'main' variable space? I have tried retall, but that does not work.
> Any help would be appreciated.

You are not "in the common block". You ARE in the "main" variable space.
However, that variables in that common block are now "visible" in the main
program space, just like any other main program variable.

This can be useful in many circumstances. I don't think it is possible to make
that common block "invisible" again. It should not be a problem unless you try
to use a variable whose name is the same as one in the common block, which
might then have undesirable side-effects.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: .dat file size
Next Topic: Re: do dlms work in vm? (prob)

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

Current Time: Fri Oct 10 18:17:06 PDT 2025

Total time taken to generate the page: 1.52239 seconds