SHLB - Buffer left shift

Language reference ›› Built-in functions ›› Buffer shifts ››
Parent Previous Next

SHLB(variable) NEW! (V2.0)

Shift left <variable> one bit position, introducing 0 to the LSB and returns a BOOLEAN that was the MSB value.


<variable> may be any variable of type CHAR, BYTE, WORD, LONGWORD, SHORTINT, INTEGER, LONGINT, or an ARRAY of these types, or an ARRAY of BOOLEAN; in this last case, the number of elements must be multiple of 8.

<variable> cannot be a pointer or a RECORD field, nor located in EEPROM.

 TheBuf: ARRAY[1..5] OF BYTE;

 // Shift out the buffer to the left
 TheBit := SHLB(TheBuff);