Back Previous Next


Linguist basic package - reset

Syntax:

   reset {hashtable}

Keyword handler:

   linguist.basic.keyword.BKReset.class

Runtime handler(s):

   linguist.basic.handler.BHReset.class

Function:

Reset a hashtable. This affects an internal variable; when data is next accessed from the table without specifying a key the item will be the next one stored in the table. The items are probably not returned in the order they were placed in the table. This feature can be used to access every record in the table, as follows:

   reset MyData
Label:
   put MyData into MyBuffer   ! takes the next element
   if MyBuffer is not empty
   begin
      write MyBuffer and return to MyFile
      go to Label
   end
   stop

Example(s):

   reset MyData


Back Previous Next