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

Home » Public Forums » archive » Sharing Variables within a Widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Sharing Variables within a Widget [message #8453] Mon, 17 March 1997 00:00 Go to previous message
john Slavich is currently offline  john Slavich
Messages: 5
Registered: March 1997
Junior Member
To anyone who can help me,

I'm in the process of building my first widget program and now I'm at
an impass. This is how my widget is presently srtuctured:

-> Function 1
-> Function 2
-> PRO, Event
-> PRO (main)

Function 1 and 2 have no widgets, they are called upon to make
calculations on data set. Function 1 requires additional information
calculated in Function 2 (i.e. the data Func. 1 requires is not part of
the Return from Function 2). Since Functions can only return 1 "thing,"
I would like to store information, calculated in Function 1 and 2, into
the top event, so that I may call upon the information in other
functions or procedures which are not widgets. For example, in the PRO
event, I can call up information stored in a structure from the PRO
main, by typing:
Widget_control, event.top, Get_UValue=info
All the info I need can be accessed in the structured called "info,"
but when I do the same thing in Function 1 and 2, it doesn't work.
I hope this is making sense, I'm still the learning process.

Thanks to anyone who's willing to help.

John

jcslavic@ouray.cudenver.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: contour 3d sections
Next Topic: can PV-Wave 'Restore' IDL Save XDR variables?

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

Current Time: Sat Oct 11 16:19:59 PDT 2025

Total time taken to generate the page: 2.07431 seconds