ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Notes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
fAttributeReadOnly (Function)
In french: fAttributLectureSeule
Gets and sets the read-only attribute of a file.
AndroidAndroid Widget Only indicates if a file is read-only
Example
Syntax

Finding out whether a file is read-only Hide the details

<Result> = fAttributeReadOnly(<File name>)
<Result>: Boolean
  • True if the file is read-only,
  • False otherwise. If an error occurs, the ErrorOccurred variable returns True.
<File name>: Character string
Name and full (or relative) path of file (up to 260 characters). A UNC path can be used.
AndroidAndroid Widget This parameter can correspond to a full path or a path relative to the current directory (returned by fCurrentDir). This parameter is case-sensitive.
Reminder: In Android, the file system is read-only on the device and on the emulator. An application can only write to its setup directory or one of its subdirectories, as well as to the external memory (SDCard).
iPhone/iPadIOS WidgetMac Catalyst This parameter can correspond to a full path or a path relative to the current directory (returned by fCurrentDir). This parameter is case-sensitive.
Reminder: On iPhone/iPad, the file system is read-only on the device and on the emulator. An application can only write to its setup directory or one of its subdirectories.
iPhone/iPadIOS WidgetMac Catalyst

Making a file read-only Hide the details

<Result> = fAttributeReadOnly(<File name> , <Change attribute>)
<Result>: Boolean
Previous status of the file:
  • True if the file was read-only,
  • False otherwise.
    If an error occurs, the ErrorOccurred variable returns True.
<File name>: Character string
Name and full (or relative) path of file (up to 260 characters). A UNC path can be used.
iPhone/iPadIOS WidgetMac Catalyst This parameter can correspond to a full path or a path relative to the current directory (returned by fCurrentDir). This parameter is case-sensitive.
Reminder: On iPhone/iPad, the file system is read-only on the device and on the emulator. An application can only write to its setup directory or one of its subdirectories.
<Change attribute>: Boolean
  • True to make the file read-only,
  • False otherwise.
Remarks

Notes

This function is faster than fAttribute.
Component: wd290std.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/24/2022

Send a report | Local help