Visara Master Console Center Scripting Guide Uživatelský manuál Strana 119

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 262
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 118
Chapter 5 Script Commands
Scripting Guide 119
FREWIND
Syntax:
FREWIND( %FileNum)
Description:
Moves an open file’s current record pointer to the beginning of the file.
Action:
The current record pointer for the file represented by the file handle
FileNum is repositioned to the beginning of the file. The next
FREAD() command reads the first entry in the file.
Parameters:
%FileNum. Numeric expression. The file handle obtained from
FOPEN(). The file for which to move the current record pointer.
Returns:
N/A
Notes:
Same as FSEEK( %Handle, 0).
Example:
%Handle := FOPEN( $FileName)
//FREAD() commands to advance the current record pointer
//through the data
FREWIND( %Handle) // to read from the beginning again
See Also:
FCLOSE, FEXISTS, FOPEN, FREAD, FWRITE
Zobrazit stránku 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 261 262

Komentáře k této Příručce

Žádné komentáře