Variables of Type SearchRec (Dos unit)


  Variables of Type SearchRec     (Dos unit)

The FindFirst and FindNext procedures use variables of type SearchRec to scan directories.

     { Search recored used by FindFirst and FindNext }
   SearchRec = record
     Fill: array[1..21] of Byte;
     Attr: Byte;
     Time: Longint;
     Size: Longint;
     Name: string [12];

The information for each file found by one of these procedures is reported back in a SearchRec.

  - Attr contains the file's attributes (constructed from file attribute
  - Time contains its packed date and time (use UnpackTime to unpack)
  - Size contains its size in bytes
  - Name contains its name
  - Fill is reserved by DOS and should never be modified

See Also

Тэги: SearchRec
| G+
Код для вставки: :: :: :: ::
Поделиться: // //