## Binary String Fm Variant FunctionBitwise Class

```Public Function BinaryStringFmVariant( _
ByVal vValue As Variant _
, Optional ByVal vToLSBFirst As Variant _
) As Variant```

### "Binary String From Variant" or "Variant To Binary String" Create a String in which each character represents one of the bits of the String or numeric value vValue. Turns a string such as Chr\$(3) + Chr\$(12) into something like "0000110000000011" Order of outgoing BITS determined by vToLSBFirst. The inverse of this function is BinaryStringToVariant.

Example:
```    Assuming
Dim intValue As Integer
Dim strValue As String
intValue = 23
strValue = Chr\$(3) + Chr\$(12)
for example
BinaryStringFmVariant(strValue, False) = "0000001100001100"
BinaryStringFmVariant(strValue, True)  = "0011000011000000"
BinaryStringFmVariant(strValue, False) = BinaryStringFmString(strValue, False, False)
BinaryStringFmVariant(strValue, True)  = BinaryStringFmString(strValue, False, True)
BinaryStringFmVariant(intValue, False) = BinaryStringFmString(intValue, True, False)
BinaryStringFmVariant(intValue, True)  = BinaryStringFmString(intValue, True, True)```
```    BinaryStringToVariant Function