Hi, first time poster.
Anyways, I'm relatively new to pb, so sorry if this question seems rather redundant but I haven't been able to figure out the problem, nor have the other developers here.
I have the syntax of a composite datawindow. It is formatted the way that I want it to be, in particular, the headers and footers are DESIGNED with objects (bitmaps etc) the way that I want it. However, I want to change the datawindowchild. I have retrieval arguments for the child, so changing the datawindowchild should be as easy as:
Step 1: Creating the datawindow
dw_main.Create(st_syntax, st_error)
Step 2: Changing the datawindowchild
dw_main.Object.dw_1.DataObject = 'd_new_child'
Step 3: Getting the child to retrieve
dw_main.GetChild('dw_1',dwc_1)
However, I always get an error on step 3. I couldn't find more documentation on GetChild besides the fact that -1 is an error (which it is) and am reaching my wits end. After doing step two and getting the name of the new datawindowchild object, it seems to set it correctly to the new one. And, when I don't bother changing it, and use the old one (skip step two) and use the GetChild it works fine, but with the wrong datawindowchild. Help would be appreciated. Thanks.
Anyways, I'm relatively new to pb, so sorry if this question seems rather redundant but I haven't been able to figure out the problem, nor have the other developers here.
I have the syntax of a composite datawindow. It is formatted the way that I want it to be, in particular, the headers and footers are DESIGNED with objects (bitmaps etc) the way that I want it. However, I want to change the datawindowchild. I have retrieval arguments for the child, so changing the datawindowchild should be as easy as:
Step 1: Creating the datawindow
dw_main.Create(st_syntax, st_error)
Step 2: Changing the datawindowchild
dw_main.Object.dw_1.DataObject = 'd_new_child'
Step 3: Getting the child to retrieve
dw_main.GetChild('dw_1',dwc_1)
However, I always get an error on step 3. I couldn't find more documentation on GetChild besides the fact that -1 is an error (which it is) and am reaching my wits end. After doing step two and getting the name of the new datawindowchild object, it seems to set it correctly to the new one. And, when I don't bother changing it, and use the old one (skip step two) and use the GetChild it works fine, but with the wrong datawindowchild. Help would be appreciated. Thanks.