DBWCheckReadOnlyFlag

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > File >

DBWCheckReadOnlyFlag

Description

Check if the read-only flag in the specified file is set

Syntax

Function DBWCheckReadOnlyFlag(Filename)

Parameters

Filename

It is the name of the file

Return Values

The function assumes following values:

TRUE

If the read-only flag for the Filename is set

FALSE

otherwise

Example

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