Advanced PowerBuilder

HomePrevious Lesson: Updating the Database BLOB Column from OLE Control
Next Lesson: Cutting the OLE Control Object

Copying the OLE Control

This function copies the content of the OLE control to the clipboard. Remember, if you are using a SinleLine/MultiLine edit control and use this function, it copies only the selected text to the clipboard. But, the same function here copies the entire content of the OLE control to the clipboard. For example, a word document is placed in this control and you selected first three lines of the document. Calling this function copies entire document to the clipboard, not the only first three lines.

Ole_control1.Copy()
HomePrevious Lesson: Updating the Database BLOB Column from OLE Control
Next Lesson: Cutting the OLE Control Object