Integer.FromBinary

From Xojo Documentation

Revision as of 14:16, 9 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Shared Method

Integer.FromBinary(binaryValue As String) As Integer

New in 2019r2

Supported for all project types and targets.

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


Shared Method

Integer.FromBinary(theText As Text) As Integer

Supported for all project types and targets.

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