Variables of Type SearchRec

Language:
Русский
English

  Variables of Type SearchRec


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

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

Information for each file found by FindFirst or FindNext is reported back in a SearchRec.

 Field   What It Contains

 Attr    File's attributes (constructed from file-attribute
         constants)
 Time    File's packed date and time (use UnpackTime to
         unpack)
 Size    File's size, in bytes
 Name    File's name

The Fill field is reserved by DOS and should never be modified.

See Also

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