Hi Mike,

For some reason your e-mails do not appear in my gmail account until
long after you posted them.

I just got this,

On Tue, Dec 4, 2012 at 11:15 PM,  <amphitr...@ok.de> wrote:
> Hello Mark!
>
> To your append from last month:
> [...]

I don't see to many questions here, mostly just statements I think.
So I'm just going to skip through most of it.

> difficulty is only that a sub-dialog or child dialog is a new
> object, 'isolated' from the parent dialog. Or did I overlook
> something and there is an alternate way to pop up a dialog window
> by selecting a system menu item?

Well, yes there are some alternative ways to pop up a dialog window.
But that doesn't change anything for you.  The popped up dialog window
is still a new object isolated from the parent dialog.

> This hand over of a value I must repeat for ervery variable I need
> in the child dialog. And repeat again for every child dialog.
>
> What leads me to the question if something like .constDir[..]
> could be used to build a 'super variable pool'.

It is hard to give advice without seeing more of your code.  But, if
you have a lot of variables, a lot of data, that you want to transfer
between dialogs and allow the dialogs to change the values, you could
define your own class to contain the data and then pass an object of
that class back and forth.

::class 'MikesData'
::attribute ipAddressHost
::attribute ipAddressClient
::attribute userName
::attribute userPassword
::attribute lastMessage
::attribute someOtherData

::method init
  self~ipAddressHost = ''
  self~ipAddressClient = ''
  ...


In your parent dialog:

data = .MikesData~new
...
subDlg1 = .Dialog~new
subDlg1~sendMyData(data)
sudDlg~execute

The just pass the object around.  Read any data values you need from
the object rather than local variables.  If one of the sub dialogs
needs to change a variable value change it in the object being passed
around.  If any other dialog needs to know the value, read it from the
object.

--
Mark Miesfeld

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to