Function Reference


Binary

Returns the binary representation of an expression.

Binary ( expression )

Parameters

expression An expression to convert into binary/byte data.

Return Value

Returns a Binary variant.

Remarks

See language datatypes for a detailed description.

Related

BinaryLen, BinaryMid, BinaryToString, Int, IsBinary, Number, StringToBinary

Example

#include <MsgBoxConstants.au3>

Local $dBinary = Binary("0x00204060") ; Convert the string to binary.

MsgBox($MB_SYSTEMMODAL, "", "Returns 1 as the variable is binary: " & IsBinary($dBinary))