&b

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Literal

Used to represent binary literals.

Usage

&bBinaryNumber

Part Type Description
BinaryNumber Binary number A binary literal value.

Notes

To write a binary literal, precede the value with &b.

Sample Code

Assigning a number using a binary literal:

Var value As Integer
value = &b101 ' value = 5 as a decimal integer

See Also

Bin function.