Important: The information in this document is obsolete and should not be used for new development.
ProtectEntry
Adds protection to or removes protection from an entry in the currentGDevice
data structure's color table.
pascal void ProtectEntry ( short index, Boolean protect);
index
- The index to the entry whose protection is to be changed.
protect
- A Boolean value: specify
true
to protect the entry,false
to remove protection.DISCUSSION
TheProtectEntry
function adds or removes protection for an entry in the currentGDevice
data structure's color table, depending on the value of theprotect
parameter. A protected entry can't be changed by other applications.ProtectEntry
returns a protection error inQDErr
if you attempt to protect an already protected entry. However, it can remove protection from any entry.