- Maritech Admin
- PowerBuilder
- Thursday, 6 December 2018 08:06 AM UTC
Hi.
We have a function in our application which takes any datawindow, finds all visible columns and copies them to another datawindow for export til Excel using dw_excel.saveas().
This is done because we only want to export the visible columns to Excel.
However, yesterday a customer reported that our application quits without any error or message.
I've debugged the code and PowerBuilder quits at this codeline:
dw_saveas.object.data = dwo.object.data.current
I've tried the following replacements, but I get the same behavior:
dwo.rowscopy(1,dwo.rowcount(),primary!,dw_saveas,dw_saveas.rowcount(),primary!)
And:
dwo.getfullstate(lbl_dw)
dw_saveas.setfullstate(lbl_dw)
The datawindow contains about 330.000 rows.
If I change the parameters a bit so that the datawindow contains "only" 290.000 rows, everything works as it should.
Is there any limitation for the size of a datawindow when it comes to copying?
Regards,
Bjarne Anker
Maritech Systems AS
Norway
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.