Sign in Join
FPDoc Onlineexperiment

FileSetAttr function

In unit sysutils

Set the attributes of a file.

Declaration

pascal
function FileSetAttr(const Filename: UnicodeString; Attr: LongInt)
: LongInt

Description

FileSetAttr sets the attributes of FileName to Attr. If the function was successful, 0 is returned, -1 otherwise. Attr can be set to an OR-ed combination of the predefined faXXX constants.

This function is not implemented on Unixes.

Errors

On error, -1 is returned (always on Unixes).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.