Mastering PowerBuilder

HomePrevious Lesson: Retrieving the Data
Next Lesson: Cut, copy, Paste (Special), Clear Services

Exporting the DataWindow

If you are using a window that is inherited from w_sheet, you would find an user-defined event pfc_saveas at the window level. However, there is no code in that event. You need to write the following code if you want to use the default PowerBuilder SaveAs dialog box:
dw_product.SaveAs()

However, if you want to use the window developed in the user objects session, write the following code:
OpenWithParm( w_export, dw_product)
HomePrevious Lesson: Retrieving the Data
Next Lesson: Cut, copy, Paste (Special), Clear Services