Represents a byte. A byte can only contain integer values between 0 and 255. Large values will be masked.
Constructors
Byte()
Default constructor.
Byte(Integer)
Pass a number to copy into a new object.
Methods
toHex()
Convert the value of the current byte to a hexadecimal representation of the byte. For example, 10 will return “a”, 11 will return “b”, and so on.
Returns: CRMScript.Global.String - Hexadecimal representation of the byte.
Use toHex(Integer) to provide the number of padding zeros.
toHex(Integer)
Convert the value of the current byte to a hexadecimal representation of the byte with padding zeros. For example, 10 will return “a”, 11 will return “b”, and so on.
Returns: CRMScript.Global.String - Hexadecimal representation of the byte with padding zeros.
toString()
Converts a byte value to its string representation.
Returns: CRMScript.Global.String
toInteger()
Converts a byte value to its integer representation (0 - 255).
Returns: CRMScript.Global.Integer - Integer representation (0 - 255)
toBool()
Returns the boolean value of the Byte.
Returns: CRMScript.Global.Bool
Example: