09-06-2017, 05:09 AM
If I have 2 dialogs:
Dialog 1:
Has button a button labeled "start", button has id 7.
Dialog 2:
Has an editfield with text "123" in it.
And it has an subfunction "sub.displaytext" which outputs the contents of the inputfield of Dialog 2.
The moment Dialog 2 runs, I put it's dialog-ID in thread global variable:
Question:
Is it possible to execute "sub.displaytext" from Dialog 1 when button "start" is pressed?
The "sub.displaytext" only interacts with Dialog 2 and only outputs content of Dialog 2
So in the code of Dialog 1:
The help states
But I hope my case might be a bit different because the sub-function stays and executes within it's own
Dialog 2 scope. Dialog 1 only calls it and the sub-function only interacts with it's own Dialog 2.
Dialog 1:
Has button a button labeled "start", button has id 7.
Dialog 2:
Has an editfield with text "123" in it.
And it has an subfunction "sub.displaytext" which outputs the contents of the inputfield of Dialog 2.
The moment Dialog 2 runs, I put it's dialog-ID in thread global variable:
Question:
Is it possible to execute "sub.displaytext" from Dialog 1 when button "start" is pressed?
The "sub.displaytext" only interacts with Dialog 2 and only outputs content of Dialog 2
So in the code of Dialog 1:
The help states
Quote:When you cannot use sub-function:
- The function is used by more than one macro/function/etc.
- ...
But I hope my case might be a bit different because the sub-function stays and executes within it's own
Dialog 2 scope. Dialog 1 only calls it and the sub-function only interacts with it's own Dialog 2.