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

Home » Public Forums » archive » setting variable to global scope?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
setting variable to global scope? [message #8734] Mon, 14 April 1997 00:00
Mark Fardal is currently offline  Mark Fardal
Messages: 51
Registered: October 1995
Member
Hi,

sometimes I'll be working from the command line in the middle of
a routine, either because I'm debugging, because the routine
crashed, or because I need access to the variables inside the
routines and don't want to rewrite it to make them parameters.
Sometimes I want to save some data so that I'll have access
to it when the routine returns. In other words, I want to
declare a variable to have global scope in the middle of a
routine. Is there a way to do this?

The easiest way I thought of was to use save/restore, but even this
is somewhat cumbersome. Not sure if common blocks work from the
command line, but they're annoying anyway.

Thanks,
Mark Fardal
University of Colorado
(email+post preferred)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Loading Color Tables on a 24-Bit Display
Next Topic: Brain MRI segmentation (please repost)

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

Current Time: Fri Oct 10 06:00:31 PDT 2025

Total time taken to generate the page: 0.55833 seconds