Guida di LibreOfficeDev 7.4
Converte una stringa o un'espressione numerica nel tipo di dati Byte.
Cbyte( espressione As Variant) As Byte
Byte
Expression: Any string or a numeric expression that can be evaluated to a number. Decimal values are rounded to the nearest tenth. Valid values range from 0 to 256.
Sub CByte_example
Print CByte( expression := "17"/2 + 7.44), CByte(EMPTY), CByte(PI)
' Above expressions are computed as 16, 0 and 3
End Sub