BitClear Function (Long, Long) | |
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(
Num AS LONG,
Bit AS LONG
) AS LONG
public static int BitClear(
int Num,
int Bit
)
Request Example
View SourceParameters
- Num
- Type: Long
Specifies the Numeric value to clear the bit in. If the expression is not an integer, it is converted to an integer before setting the bit.
- Bit
- Type: Long
Specifies the bit position in nExpression1 to clear. nExpression2 can range from 0 to 31 with 0 located as the bit to the farthest right.
Return Value
Type:
LongNumeric,
Varbinary, or
Blob.
BitClear( ) returns the specified expression without specified bit.
Examples 1x = 7
2y = 1
3? BitClear(x,y)
See Also