Advanced PowerBuilder

HomePrevious Lesson: Inserting an Object in the OLE Control
Next Lesson: Saving the OLE Control as Another File

Saving the Object From the OLE Control

Calling the Save() saves the content of the OLE control to the opened file. If you open the file by using Open() format 1 or InsertObject() functions, file is saved to the opened file. If the file is opened from the OLE storage (explained in the next session), it will be saved to the OLE storage.

ole_1.Save()

To see it in the action, run the application. Select "Module/OLE 2.0 Control Examples" option from the menu. Insert a file by clicking on the "Insert File" CommandButton and click on the "Save" CommandButton.
HomePrevious Lesson: Inserting an Object in the OLE Control
Next Lesson: Saving the OLE Control as Another File