Skip to main content

ProtectLogicalFile

STD.File.ProtectLogicalFile( logicalfilename [ , value ] )

logicalfilenameA null-terminated string containing the name of the logical file as it is known by the DFU.
valueOptional. A boolean flag indicating whether to protect or un-protect the file. If omitted, the default is TRUE.

The ProtectLogicalFile function toggles protection on and off for the specified logicalfilename.

Example:

IMPORT STD;
file := '~class::bmf::join::halfkeyed';

STD.File.ProtectLogicalFile(file);         //protect
STD.File.ProtectLogicalFile(file, FALSE);  //unprotect