BitNot Function (Long) | |
Performs a bitwise NOT operation on a value of Numeric, Varbinary, or Blob type and returns the bitwise complement on the specified value.
There is a numeric and a binary version of the syntax.
If the specified expression is not an integer, it is converted to an integer before performing the operation.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION BitNot(
nNumericExpression AS LONG
) AS LONG
public static int BitNot(
int nNumericExpression
)
Request Example
View SourceParameters
- nNumericExpression
- Type: Long
Specifies a Numeric value to perform the bitwise NOT operation.
Return Value
Type:
LongNumeric,
Varbinary, or
Blob.
BitNot( ) returns the bitwise complement of the specified expression.
In other words, the return value represents the specified expression with each 0 bit changed to 1 and each 1 bit changed to 0.
Examples See Also