Integer.FromBinary

From Xojo Documentation

Shared Method

Integer.FromBinary(binaryValue As String) As Integer

New in 2019r2

Converts a String form of a binary number to an Integer.


Shared Method

Integer.FromBinary(theText As Text) As Integer

Converts a text form of a binary number to an Integer.

Exceptions

Sample Code

Convert "0110" to the integer value of 6:

Var value As Integer
value = Integer.FromBinary("0110") // value = 6