Difference between revisions of "BitwiseAnd"

From Xojo Documentation

(Redirected page to Bitwise.BitAnd)
 
m (Text replacement - "{{Deprecated" to "{{DeprecatedItem")
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
#Redirect [[Bitwise.BitAnd]]
+
{{DeprecatedItem | itemtype=method | version=2018r2 | replacement=[[Bitwise.BitAnd]]}}
 +
{{MethodBox
 +
| name=BitwiseAnd
 +
| platform=all
 +
| scope=global
 +
}}
 +
{{Description
 +
|text = Performs a bitwise And on value1 and value2. }}
 +
 
 +
== Usage ==
 +
''result'' = '''BitwiseAnd'''(''value1'', ''value2'')
 +
{| class="wikitable"
 +
 
 +
! width="15%" | Part
 +
! width="55%" | Description
 +
|-
 +
|value1
 +
|Required. A UInt64 value.
 +
 
 +
|-
 +
|value2
 +
|Required. A UInt64 value.
 +
 
 +
|-
 +
|result
 +
|Integer value.
 +
 
 +
|-
 +
|}
 +
 
 +
== Sample Code ==
 +
<rbcode>
 +
Dim b As Integer = 15
 +
Dim a As Integer = 7
 +
Dim c As Integer = BitwiseAnd(a, b) // c = 7
 +
</rbcode>
 +
 
 +
== See Also ==
 +
[[Bitwise.BitAnd]] function;

Latest revision as of 19:05, 3 September 2020

Method

Performs a bitwise And on value1 and value2.

Usage

result = BitwiseAnd(value1, value2)

Part Description
value1 Required. A UInt64 value.
value2 Required. A UInt64 value.
result Integer value.

Sample Code

Dim b As Integer = 15
Dim a As Integer = 7
Dim c As Integer = BitwiseAnd(a, b) // c = 7

See Also

Bitwise.BitAnd function;