Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

BYTESREAD

Description

BYTESREAD is a read-only pseudo variable. It primarily exists to let the program know how many bytes just were transferred. A script can only read this variable. Write access is prohibited and treated as error.

Example

The following program reads data from the current I/O protocol until one second elapses. Then it prints out how many bytes it has stored in the variable a$.

outmode -2
inmode -3
let a$ = ""
while 1=1
   sleep (1000)
   input a$
   if BYTESREAD <> 0 then
      print BYTESREAD
   end if
wend

Remarks

Why and when BYTESREAD changes its value, depends on certain commands and functions of the scripting language.