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

Home » Public Forums » archive » Help: definition of the structure in COMMON block
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help: definition of the structure in COMMON block [message #14809] Sun, 28 March 1999 00:00 Go to previous message
VU KHAC Tri is currently offline  VU KHAC Tri
Messages: 25
Registered: March 1999
Junior Member
Hi folks,

I want to define a structured variable as global variable. So I think
about using the COMMON block to share this variable with others
procedures. However, IDL does not enable to use this variable in a
procedure without declaration.

pro A
COMMON SHARE1, X ;how to define x as a structure ?
X.a = 1
X.b = 2
end

pro B
COMMON SHARE1
X.a = 4 ; this is not permitted
X.b = 5
end


Does anyone know how to resolve this problem ?
Thanks for your help.
Best regards,
Tri.

PS. Thanks also all of you for all your precedent responses.
[Message index]
 
Read Message
Read Message
Previous Topic: bold text
Next Topic: Widget_Message on the Mac

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

Current Time: Fri Oct 10 08:07:35 PDT 2025

Total time taken to generate the page: 1.19898 seconds