Survey Tabulation > Advanced expressions > UNICOM Intelligence function library > Miscellaneous functions > GetInterface
 
GetInterface
Returns an alternate interface for an object.
Syntax
GetInterface(Object, InterfaceID)
Parameters
Object
Type: Object
The object to query for the alternate interface.
InterfaceID
Type: String
The identifier of the interface as a string. This is a string representation of the Interface ID in the form {xxxxxx-...-xxxx}
(return)
Type: Object
The alternate interface for the object.
Remarks
An error is returned if the object does not support the requested interface.
The results may be unpredictable if the alternate interface does not derive from IDispatch.
Example
The following mrScriptBasic example uses the GetInterface function to return the IArray interface for an MDM Grid object:
Here is the output:
YEARS_0_5
YEARS_6_10
YEARS_11_15
For another example script that uses the GetInterface function, see Using the clone feature.
See also
Miscellaneous functions