Hi All,
I'm using PB12.1. I create a datawindow using syntaxfromsql and then add some controls dynamically into it. All is working except that when I want to modify the width expression of one the controls I added, I could not get any success. Can you spot what's wrong with the below modify statement?
I'm getting incorrect syntax error.
string ls_mod
ls_mod = 'column1.width="1000~tLong(Describe(~"column2.x~"))+ Long(Describe(~"column2.width~")) - Long(Describe(~"column1.x~"))"'
dw_1.Modify(ls_mod)
Please note that when I apply that expression in a not dynamically created datawindow, it works fine. Is there anything else I need to do for a dynamically created one?
Thanks you
Neil
Thank you for the reply. Yes, I supplied the control name when I created it dynamically.
Regards,
Neil