OLEObject.Constructor(copy as OLEObject)

From Xojo Documentation

Constructor


OLEObject.Constructor(copy as OLEObject)

New in 2008r1

Creates a copy of the OLEObject.

Example

The following example creates a copy of the passed OLEObject using the copy constructor and opens a new Word document.

Var word As New OLEObject("word.Application")
Var wordCopy As OLEObject // copy constructor
wordCopy = New OLEObject(word)
wordCopy.Visible = True
wordCopy.Documents.Add