File.GetReadOnly

Syntax:

GetReadOnly()

Returned value:

Type: Boolean.
True indicates that the "Read only" attribute is set for the file; otherwise it is False.

Description:

Receives the value of the "Read only" file attribute.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

Applies only to files or directories that actually exist.
To use the method on the web-client, you should preliminarily attach the extension for working with files.

Example:

If Selection.GetReadOnly() Then
    Message("File "+TrimAll(Selection.Name)+" is read-only.");
EndIf
;

See also:

File, method BeginGettingReadOnly

    

1C:Enterprise Developer's Community