cancel
Showing results for 
Search instead for 
Did you mean: 

i am having problem with GetChild statement ,it return -1 code

Former Member
0 Kudos

Datawindowchild lwd_c

int return_cd

return_cd=dw_1.GetChild('trans_desc', lwd_c)

The above statement return -1, means it failed.

any one know the solution , please respond

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try the suggestion here: https://www.experts-exchange.com/questions/28011536/PowerBuilder-11-5-Nested-Reports-on-Datawindow-a...

Datawindow,Processing needs to be 5 for GetChild to work, and I guess that is your issue.

Former Member
0 Kudos

Please provide more information.

Is "trans_desc" a column or a report? If it is a report: What kind of datawindow is the master datawindow (in dw_1)?

What kind of datawindow is the child (in "trans_desc")?