HTBasic Help
×
Menu
Index

Buffers

 
Buffers are typically used as the source or destination of a TRANSFER. To allocate an unnamed buffer and assign it to an I/O path name:
 
ASSIGN @Iopath TO BUFFER [300]
 
Unnamed buffers can only be accessed through their I/O path. An I/O path name can be assigned to a variable declared as a buffer in a COM, DIM, INTEGER, LONG or REAL statement:
 
ASSIGN @Another TO BUFFER X(*)
 
Numeric data stored in a named buffer should not be accessed through the name of the array if the byte order of the computer and the byte order of the data is different. In this case, STATUS and CONTROL are the preferred method for accessing the data.
 
Buffers specified in ASSIGN statements can be used with ENTER, OUTPUT, or TRANSFER.