Using Buffers
77
Axcess Programming Language
Buffer Keywords (Cont.)
GET_BUFFER_CHAR
THIS keyword is used to remove
characters from a buffer.
It has a two-part operation:
• First, it retrieves the first character in the buffer for your own utilization.
This creates the same effect as if you retrieved the first storage location
of a normal string array.
• Second, it removes that character from the buffer, causing all the other
characters to shift up one place. The second character is now the first,
the third is now the second, and so on.
Here is the syntax:
result = GET_BUFFER_CHAR (array)
The parameter passed to GET_BUFFER_CHAR must be an array, but
does not need to be a buffer. The keyword will operate identically in either
case. Only one byte (character) will be returned, and this value can be
assigned to a variable, array, or a cell in an array.
GET_MULTI_BUFFER_STRING
To access characters coming into
a multi-buffer, you must first use
GET_MULTI_BUFFER_STRING
to transfer these characters into
another array.
The syntax:
device = GET_MULTI_BUFFER_STRING (buffer, array)
The next string in the specified buffer is assigned to the specified array. All
three header bytes for the string are stripped before the string enters the
array.
The result of a GET_MULTI_BUFFER_STRING statement is the device
number of the card that received the string.
Summary of Contents for Axcess
Page 1: ...instruction manual Software Axcess Programming Language ...
Page 8: ...vi Axcess Programming Language Table of Contents ...
Page 12: ...Introduction 4 Axcess Programming Language ...
Page 22: ...Axcess Basics 14 Axcess Programming Language ...
Page 38: ...Channel Characteristics 30 Axcess Programming Language ...
Page 54: ...Levels 46 Axcess Programming Language ...
Page 62: ...Operators 54 Axcess Programming Language ...
Page 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Page 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Page 80: ...While Keywords 72 Axcess Programming Language ...
Page 86: ...Using Buffers 78 Axcess Programming Language ...
Page 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Page 102: ...Using Subroutines 94 Axcess Programming Language ...
Page 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Page 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Page 124: ...The External_Control Protocol 116 Axcess Programming Language ...