Core.DataTypes.SimpleDataType.String
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 }