1. Opening and closing UO's from UO's
I have a User Object (uo_custom) in my application that from which I open other user
objects(datawindow). In the constructor event of uo_custom I set an instance
variable (iw_myParent) of type window equal to the parent window :
iw_myParent = parent. There is also an instance variable inuo_custom,
iou_activeView of type u_d_base that keeps the current open uo_datawindow
On the uo_custom I have a row of command buttons that open the dataWindow
User Objects. All ofthese datawindows have a common ancestor (u_d_base is a
datawindow User Object). . The scriptthat I am using to open these objects is
iw_myparent.OpenUserObject(dw_pattern_codes, parent.x, parent.y + 109)
iuo_activeview = dw_pattern_codes
The User Objects open and display just fine, the problem that I am having is
that every time I try toclose the active datawindow (iuo_actvieView) I get a
GPF. Is this a PowerBuilder bug or is theresomething that I am doing wrong?
The script that I am using to close the user object is as follows
I have stepped through the scripts with the debugger and the instance vars
(iw_myParent andiuo_activeView) seem to be getting set properly.
Any help would be greatly appreciated. I could probably do the same thing by
placing a child windowon my window and using that to open my uo_datawindows,
however I hate to throw away the stuff Ihave already done. Especially since
this should work, shouldn't it? :-)
_/ _/ _/ _/ _/_/_/
Gary Udstrand _/ _/ _/ _/ _/ _/ AT&T: (612) 945-6523
Advanced Technology _/ _/ _/_/_/_/ _/ Fax: (612) 945-6502
_/_/_/ _/ _/ _/_/_/
"The truly great things happen when a genius is alone. This is true
especially among golfers."
-J. R. Coulson
2. Immediate REQ : Unix - AIX Admin in Segundo, CA.
3. Quattro Pro for Windows templates/add-ins?
4. Seeking mSQL resources
5. MSN or Windows Messenger Add-ins Programming
6. Stylesheet to test if value is integer
7. windows messenger add-ins ... help!!!!
8. Turning Windows apps into browser pug-ins
9. Tab Order in a window (not a data window)
10. Dynamic user object tab order
11. How to set tab order for data window
12. Scanning plug-ins