...
Code Block | ||||
---|---|---|---|---|
| ||||
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.
This function is equivalent to the EDMinterface function sdaiGetInstanceType
Arguments
...
Type | Name | Comment |
GENERIC | instance | comment |
GENERIC | instanceType |
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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 (Content by label) | ||||||
---|---|---|---|---|---|---|
|