Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Debugging windows opened as local variables – PB Docs 125 – PowerBuilder Library

Debugging windows opened as local variables – PB Docs 125

Debugging windows opened as local variables

One way to open a window is by declaring a local variable
of type window and opening it through a string. For example:

The problem

Normally, you cannot debug windows opened this way after the
script ends because the local variable (mywin in
the preceding script) goes out of scope when the script ends.

The solution

If you want to debug windows opened this way, you can declare
a global variable of type window and assign it the local variable.
If, for example, GlobalWindow is a global window
of type window, you could add the following line to the end of the
preceding script:

You can look at and modify the opened window through the global
variable. When you have finished debugging the window, you can remove
the global variable and the statement assigning the local to the
global.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x