BitLShift Function (Long, Long) | |
Moves bits in a numeric value to the left by the specified number of positions and returns the resulting value.
If the specified expressions are not integers, they are converted to integers before performing the operation.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION BitLShift(
Arg AS LONG,
Bits AS LONG
) AS LONG
public static int BitLShift(
int Arg,
int Bits
)
Request Example
View SourceParameters
- Arg
- Type: Long
Specifies the numeric value in which to move bits to the left.
- Bits
- Type: Long
Return Value
Type:
Long
Numeric.
BitLShift( ) returns the specified expression with bits moved by the specified number of positions.
Remarks BitLShift( ) does not support Varbinary values.
Examples 1x = 5
2y = 1
3? BitLShift(x,y)
See Also