The buffer data type is a new data type in which texts and numeric values can be stored together or from which numeric values (numbers, integer) can be read.

Definition Options

Data Type Global Local
Buffer

Global Buffer Variables

To define a global buffer variable in PAscript, data type buffer + variable names are used in the section globals.

Note In PAtools there is no global data type Buffer. Currently a text variable can be used as a global buffer variable.

Example

Local Buffer Variables

To define local buffer variables, specify the data type buffer and also the maximum length of the variable in parentheses.

buffer variable name(length) = initialization

The initialization after the variable name is optional. If no initialization is specified, the variable is initialized with the empty string "".

Example: Local Variable Definitions

Buffer as Parameter of a User-Defined Function

If data type buffer is used as a parameter of a user-defined function, only the data type is used. No maximum text length is specified.