Bchg8 Function

Purpose

Changes the status of a bit in a 64 bit integer expression.

Syntax

I = Bchg8( m64, n)(function)

Bchg8 v64, n(command)

m, niexp
v64:Large var

Description

Bchg8(m, n) sets the n-th bit in the 64-bit integer expression m to 1 (if this bit is 0), or to 0 (if this bit is 1).

Example

Print Bin$(10, 4)           // Prints 1010

Print Bin$(Bchg8(10, 0), 4) // Prints 1011

Dim i64 As Large = 10

i64 = Bchg8(i64, 0)

Print i64                   // Prints 11

Remarks

Although listed in the original help file as a command - i.e. Bchg8 v64, n - it seems never to have been implemented as such.

See Also

Bclr8(), Bset8(), Btst8()

{Created by Sjouke Hamstra; Last updated: 24/09/2014 by James Gaite}