|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > File > DBWCheckReadOnlyFlag |
Check if the read-only flag in the specified file is set
Function DBWCheckReadOnlyFlag(Filename)
Filename |
It is the name of the file |
The function assumes following values:
TRUE |
If the read-only flag for the Filename is set |
|---|---|
FALSE |
otherwise |
filename="test.sldasm"
if DBWCheckReadOnlyFlag(filename) then
msgbox "WARNING! The file is in read-only mode"
else
msgbox "Go on! You can modify it."
end if