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

Home » Public Forums » archive » Re: change values of structure variable
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: change values of structure variable [message #81953 is a reply to message #81941] Tue, 06 November 2012 10:23 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, November 6, 2012 10:23:40 AM UTC-5, David Fanning wrote:

> You can't change anything about a structure once you create
> it in the IDL session.

You can't change dimensions or data types, but you should be able to change structure tag values. So I don't know why the code is not working for the OP (we don't see his common block). But the following works

pro test1
common var,a
a.b(*,*) = 2500
return
end

pro test
common var,a
a = {b:dblarr(3,5)}
test1
print,a.b
return
end

IDL> test
2500.0000 2500.0000 2500.0000
2500.0000 2500.0000 2500.0000
2500.0000 2500.0000 2500.0000
2500.0000 2500.0000 2500.0000
2500.0000 2500.0000 2500.0000
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: attractive base map for animation
Next Topic: Re: Save some plots

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

Current Time: Fri Oct 10 03:01:50 PDT 2025

Total time taken to generate the page: 1.19608 seconds