setting variable to global scope? [message #8734] |
Mon, 14 April 1997 00:00 |
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)
|
|
|