![]() |
OTX Reference
|
|
BlackBox is an otx:ComplexType.
More...
BlackBox is an otx:ComplexType.
The OTX BlackBox data type identifies OTX in a transport or base data type. It can be used to receive the result with a data type is unknown to OTX. Users can use terms or actions to interact with the BlackBox data types.
Conversion terms
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
---|---|---|
ToBoolean | Returns the Boolean counterpart of the argument term | Boolean b = ToBoolean(blackBoxVariable); // Returns true/false/TypeMismatchException |
ToInteger | Returns the Integer counterpart of the argument term | Integer i = ToInteger(blackBoxVariable); // Returns integer value/TypeMismatchException |
ToFloat | Returns the Float counterpart of the argument term | Float f = ToFloat(blackBoxVariable); // Returns float value/TypeMismatchException |
ToString | Returns the String counterpart of the argument term | String s = ToString(blackBoxVariable); // Returns string value/TypeMismatchException |
ToByteFieldReturns the ByteField counterpart of the argument term | ByteField bf = ToByteField(blackBoxVariable); // Returns byteField value/TypeMismatchException |
Sample