GetObjectKey

ACCPAC Common Controls

AccpacSession.GetObjectKey

Retrieves the object key associated with the current session.

Function GetObjectKey() As String

Return Value

Returns the object key associated with the object handle (set by the caller or parent application) that opened the current session.

Returns empty if the object key is not set.

Remarks

An object key is associated with an object handle when the calling application calls CreateObjectHandle with the key, and obtains an object handle. When the object handle is subsequently passed to another application and used to initialize a session, the key is tied to the newly opened session and can be obtained from GetObjectKey.