Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »


 

FUNCTION xpfCastValue (value       : GENERIC;
                       newDatatype : INTEGER)
                       castedValue : GENERIC;
                

Use this function to cast a value to another type avoiding conflicts in assignments. E.g. from INTEGER (result of ) to xpxDateTime

Arguments


TypeNameComment
GENERICvaluecomments
INTEGERnewDatatype

 predefined constants that used to specify a primitive datatype:

xpxDateTime, xpxInteger, xpxString, xpxBoolean, xpxLogical, xpxInstance, etc.

Return Value


 

TypeNameComment
GENERICcastedValuecomments

Options


 

Example


IF xpfCastValue(activity.start, XPXINTEGER) > xpfCastValue(activity.finish, XPXINTEGER) THEN xpxThrow; END_IF; -- where activity.start and activity.finish both are _DATETIME type and can not be compared directly

 

See also

Filter by label

There are no items with the selected labels at this time.

 

  • No labels