Integer.FromBinary
From Xojo Documentation
Shared Method
Integer.FromBinary(binaryValue As String) As Integer
New in 2019r2
Supported for all project types and targets.
New in 2019r2
Supported for all project types and targets.
Converts a String form of a binary number to an Integer.
Shared Method
Converts a text form of a binary number to an Integer.
Exceptions
- InvalidArgumentException when the value passed is empty.
Sample Code
Convert "0110" to the integer value of 6: