Delegate.Constructor(p As Ptr)

From Xojo Documentation

Revision as of 19:44, 21 November 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Delegate.Constructor(p As Ptr)

The delegate type's constructor takes a single Ptr, which is assumed to be correct for the delegate type.

Sample Code

Assume there is a Delegate declared as SimpleProc:

Var pp As Ptr = AnOSFunctionThatReturnsAFunctionPointer()
Var sp As New SimpleProc(pp)
sp.Invoke()