Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 31, 2017 at 07:08 AM

    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")?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 07, 2017 at 12:03 PM

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

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

    Add comment
    10|10000 characters needed characters exceeded