Named Common is great. -
08-28-2006
, 11:59 PM
All this confusion over Named Common blocks and LOGTOs is driving me
nuts. It really is very simple guys!
Unnamed common, as we all know, "belongs" to the currently running
Basic program and any lower-level subroutines called. There is only one
unnamed common block. Call a subroutine that has a different unnamed
common block and you're likely to have problems. You can do it, but you
had better be aware that each variable in the common block maps
according to position. For instance, if you have an unnamed common
block of just a single variable called MyCommonVariable and you call a
subroutine which has a single common variable called
TheOtherCommonVariable, they both, in fact, map to the same variable -
common to both.
I have no difficulty grasping that we also have "higher power" named
common blocks available to us, shared by *all* Basic processes, that
persist from login to logoff. <- That's a period folks.
Mike. |