Xbasic

BLOB.ROTATE Function

Syntax

V Rotate(N direction)

Arguments

direction

The number of bits to rotate the variable's data.

Description

Rotate Bits within blob.

Discussion

The .ROTATE() method rotates the bits of a binary variable.

Example

dim b as B
b = "alpha software"
? b.dump("a")
= "alpha software. "
b.rotate(8)
? b.dump("a"
= ".alpha software "
b.rotate(8)
? b.dump("a")
= "e.alpha softwar "
dim b as B
b = "alpha software"
? b.dump("a")
= "alpha software. "
b.rotate(-8)
? b.dump("a")
= "lpha software.a "

See Also