[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: COMMON block question



As far as I know (from trying), a program module that has access to a
common block just takes whatever item happens to be at that location and
tries to use it. It is not aware of the type or size of that variable.
All that matters is that the user knows what each program is supposed to
get from the common block and makes sure programs access variables in
common blocks in the right order. In other words, something like the
following does not work well:

pro one
common temp, a, b
a = 'this is a string'
b = 2.5
end

pro two
common temp, b
print, b*5
end

Cheers,
Pavel