Subject: | |
From: | |
Reply To: | |
Date: | Mon, 29 Apr 2002 15:06:13 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi,
if the variable is defined as external in the main
program , it will be allocated every time the program
runs and since EXTERNALS are global then it has to be
defined in all subprograms ( if needed ).
however if the main program calls another subprogram
that calls this routine , the variable comes to life
only when needed , and since it is static ,its values
are preserved in between calls.
Thanks
Michael Abootorab
--- Dennis Handly <[log in to unmask]> wrote:
> >It's much faster to use a 'subprogram' for a
> variable this large.
> Michael Abootorab
>
> As I said, I believe EXTERNAL also will help for
> main.
> Though since in all cases they are initialized, it
> would take up space
> in a program except for DYNAMIC.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|