xpxGetInstanceType
FUNCTION xpxGetInstanceType(instance , VAR instanceType : GENERIC) status : INTEGER;
The xpxGetInstanceType function will return the instance type of the actual instance argument. The instance type is the instanceId of the entity_definition instance in the appropriate dictionary model defining the instance type. The actual model where the instance is located must be opened before this function can be performed successfully.
Arguments
Type | Name | Comment |
GENERIC | instance | comment |
GENERIC | instanceType |
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.
Options
Example
FUNCTION getInstanceType(instId : GENERIC) : GENERIC; LOCAL entityId : GENERIC; END_LOCAL; ON_ERROR_DO; xpxPrintf('\nError.'); xpxThrow; END_ON_ERROR_DO; xpxGetInstanceType(instId,entityId); xpxPrintf('\nInstance of type %s',entityId.name); RETURN(entityId); END_FUNCTION;
See also
Filter by label
There are no items with the selected labels at this time.