DMEDIUM_RDONLY
Syntax |
DMEDIUM_RDONLY [(#channel)] or DMEDIUM_RDONLY (\file) |
Location |
SMSQ/E v2.73+ |
This function returns the value 1 (true) if the the medium on which the specified file or directory is located (or to which the specified channel is open) is write-protected either through hardware or software control. If no parameter is specified, it looks to channel #3 (or #1 if #3 is not open). If the medium can be written to, the value returned is zero.
NOTE
This function does not appear to work on Falkenberg hard disk interfaces where it always returns 1.
CROSS-REFERENCE
See DMEDIUM_NAME$ for an example.