BitClear Function (Usual, Usual, Usual) | |
Clears the specified bit in a Numeric, Varbinary, or Blob value by setting it to 0 and returns the resulting 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.21
Syntax FUNCTION BitClear(
Arg1 AS USUAL,
Arg2 AS USUAL,
Arg3 AS USUAL
) AS BINARY
public static Binary BitClear(
Usual Arg1,
Usual Arg2,
Usual Arg3
)
Request Example
View SourceParameters
- Arg1
- Type: Usual
Specifies the Numeric value or Varbinary or Blob expression to clear the bit in. If the expression is not an integer, it is converted to an integer before setting the bit.
- Arg2
- Type: Usual
- Arg3
- Type: Usual
Return Value
Type:
BinaryNumeric,
Varbinary, or
Blob.
BitClear( ) returns the specified expression without specified bit.
Examples 1x = 7
2y = 1
3? BitClear(x,y)
See Also