OLEObject.Constructor(copy as OLEObject)

From Xojo Documentation

Revision as of 23:21, 24 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


OLEObject.Constructor(copy as OLEObject)

New in 2008r1

Creates a copy of the OLEObject.


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