ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Bitwise functions
  • Bitwise operation
  • Bitwise operator
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 2024, BinaryOR is kept for backward compatibility. This function has been replaced with BitwiseOR.
Returns the result of the bitwise OR operation performed between two values.
Example
// Get the result of the logical OR operation
ResBitwiseOR = BitwiseOR(6, 6)  // Returns 6
ResBitwiseOR = BitwiseOR(6, 2)  // Returns 6
Syntax
<Result> = BitwiseOR(<Value 1> , <Value 2>)
<Result>: Integer
Result of the logical OR operation.
<Value 1>: Integer
First value to be evaluated.
<Value 2>: Integer
Second value to be evaluated.
Remarks

Bitwise operation

BitwiseOR performs the bitwise operation on <Value 1> and <Value 2> based on the following table:
01
001
111

Bitwise operator

  • BitwiseOR is equivalent to the | bitwise operator for 4-byte integers. For more details, see Bitwise operators.
  • BitwiseOR returns a precise result when you pass 4-byte integers. Passing 8-byte integers causes an overflow.
  • The | operator can be used to perform bitwise operations between 8-byte integers.
Component: wd300mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/23/2024

Send a report | Local help