Core.DataTypes.SimpleDataType.String

From emotive
Revision as of 08:34, 22 October 2018 by Hb (talk | contribs)
Jump to navigation Jump to search

Classification

Name String
Short Description String value
Class Simple Data Type
Base Data Type SimpleType
Default Value ""
Provide a Literal Yes
SpecifiedBy ISO 13209-2
Standard Compliant Yes

Description

The String data type identifies OTX in a sequence of zero or more characters.

{{ConversionTable | Boolean=Returns true if the string value is "true", otherwise false. | IntegerSample=Boolean b = ToBoolean("123"); // Returns false | Integer=Returns the integer value of the string. | IntegerSample=Integer i = ToInteger("123"); // Returns 123 | Float=Returns the float value of the string. | IntegerSample=Float f = ToFloat("123"); // Returns 123.0 | String=Returns the name of the enumeration value | StringSample=String s = ToString("123"); // Returns "123"| ByteField=Returns the UTF-8 encoded value. | StringSample=String bf = ToByteField("123"); // Returns 313233 }