Type Casting
The following functions allow you to change value types in expression bindings.
ποΈ toBoolean
Tries to convert value to a boolean
ποΈ toBorder
This function is used specifically when binding a Border property on a component. Typically, this is used with a Container or Label component but can be used on any component that has a Border property.
ποΈ toColor
This function tries to convert value to a color.
ποΈ toDataSet
Tries to coerce value into a dataset.
ποΈ toDate
Tries to coerce value into a Date.
ποΈ toDouble
Tries to coerce value into a double (64-bit floating point value).
ποΈ toFloat
Tries to coerce value into a float (32-bit floating point value).
ποΈ toFont
Coerces a string into a font.
ποΈ toInt
Tries to coerce value into an integer (32-bit integer).
ποΈ toInteger
Identical to the toInt expression function.
ποΈ toLong
Tries to coerce value into a long (64-bit integer).
ποΈ toStr
Identical to the toString expression function.
ποΈ toString
Represents the value as a string. Will succeed for any type of value.