Home | Sign in | English  Help      BinaryAND Presentation Example Bit-by-bit calculation Binary operator See also  BinaryAND BinaryNOT BinaryOR BinaryXOR Functions for managing binary values
• Bit-by-bit calculation
• Binary operator
WINDEV      WEBDEV    WINDEV Mobile        Others BinaryAND (Function)
In french: ETBinaire
Returns the result of a logical AND (bit by bit) between two values.
Example
// Retrieve the result of a logical AND
ResBinaryAND = BinaryAND(6, 6)  // Returns 6
ResBinaryAND = BinaryAND(6, 2)  // Returns 2
Syntax
<Result> = BinaryAND(<Value 1> , <Value 2>)
<Result>: Integer
Result of logical AND.
<Value 1>: Integer
First value to test.
<Value 2>: Integer
Second value to test.
Remarks

Bit-by-bit calculation

BinaryAND performs a bit-to-bit calculation between <Value1> and <Value 2> according to the following table
 0 1 0 0 0 1 0 1

Binary operator

• BinaryAND is equivalent to the & binary operator. See Binary operators for more details.
• The binary operator & is used to perform operations on 8-byte integers.
Component : wd250mat.dll
Minimum version required
• Version 9