GetHostObject

Description

Provides a reference to the context’s host object.

Applies to

ContextInformation objects

Syntax

servicereference.GetHostObject ( hostobject )

Argument

Description

servicereference

Reference to the Context Information service instance

hostobject

PowerObject into which the function places a reference to the ActiveX automation server object

Returns

Integer. Returns 1 if the function succeeds and -1 if an error occurs. In PocketBuilder applications, GetHostObject always returns -1.

Usage

Call this function to obtain a reference to the context object model.

NotePocketBuilder environments The host object in a PocketBuilder application is an empty object—it fails the isValid(obj) test.

See also