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

  • 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 119
Chapter 5 Script Commands
Scripting Guide 120
FSEEK
Syntax:
FSEEK( %FileNum, %Position) ==> %Success
Description:
Moves an open file’s current record pointer to a byte offset.
Action:
The current record pointer for the file represented by the file handle
FileNum is repositioned to the byte offset specified by the Position
parameter.
Parameters:
%FileNum. Numeric expression. The file handle obtained from
FOPEN(). The file for which the current record pointer will be moved.
%Position. Numeric expression. The number of bytes from the
beginning of the file to position the current record pointer. The
beginning of the file is byte 0.
Returns:
Numeric value, as follows:
Value Meaning
0 (FALSE) The current record pointer was not
successfully moved to the requested
Position.
1 (TRUE) The current record pointer was
successfully moved to the requested
Position.
Notes:
N/A
Example:
%Handle := FOPEN( $FileName)
%Success := FSEEK( %Handle, %Position)
See Also:
FCLOSE, FEXISTS, FOPEN, FREAD, FREWIND, FWRITE
Zobrazit stránku 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 261 262

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

Žádné komentáře