RESTORE

Top  Previous  Next

Syntax

RESTORE(blockname as DATABLOCK BYREF)

Description

Restores the data pointer in the block to the beginning.

Parameters

blockname - Name of the data block specified in the DATABEGIN statement.

Return value

None

Remarks

See Also: DATABEGIN, DATAEND, DATA, GETDATA

Example usage

DEF a as INT
 
RESTORE mydata
 
FOR x = 1 to 6
   GETDATA mydata,a
PRINT a
NEXT x
 
DO:UNTIL INKEY$ <> ""
END
 
DATABEGIN mydata
DATA 1,2,3
DATA 4,10,2002
DATAEND