Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

Example

...

Code Block
languagecpp
<Missing 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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"

...