GetObject

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Data types and variables > iDispatch variables >

GetObject

 

Description

 

Retrieve an Automation object (iDispatch object) when object is identified by a moniker.

This function assumes there is a current instance of the object.

 

Syntax

 

iDispatchVariable = GetObject(sMoniker)

 

Returns

 

iDispatch Variable

 

Parameters

 

Name

Type

Optional

Meaning

sProgId

String

No

Name on an external COM server

 

Remarks

 

Restrictions

 

See also

 

iDispatch, NewCom, GetCom, AnyCom, Nothing, IsComObject, IsComNothing.

 

Examples