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

Home » Public Forums » archive » Re: COMMON block question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: COMMON block question [message #23566] Tue, 30 January 2001 12:57 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
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
[Message index]
 
Read Message
Read Message
Previous Topic: How to pick a window?
Next Topic: Shadows (Yet Another Object Graphics Question)

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

Current Time: Mon Dec 01 15:29:36 PST 2025

Total time taken to generate the page: 0.95749 seconds