HTBasic Help
×
Menu
Index

Syntax

 
The syntax of the ASSIGN statement is:
ASSIGN @io-path [TO target] [;attrib [,attrib...] ]
 
Where:
 
@io-path = a legal I/O path variable name
target = device-selector [, device-selector...] | file-specifier | pipe-specifier | BUFFER {string-name$ | numeric-array(*) | ‘[‘buf-size’]’}
attrib =FORMAT {ON|OFF|MSB FIRST|LSB FIRST} | {BYTE|WORD} | EOL eol-chars [END] [DELAY seconds] | EOL OFF | APPEND | RETURN numeric-name
buf-size = size of the buffer in bytes
eol-chars = string expression of up to 8 characters
seconds = numeric-expression rounded to the nearest 0.001 through 32.767 (default is 0)
 
The following paragraphs give some explanation of how to ASSIGN the different I/O targets: devices, files, and buffers. Then the different I/O attributes are explained.