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 currentGDevicedata 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
trueto protect the entry,falseto remove protection.DISCUSSION
TheProtectEntryfunction adds or removes protection for an entry in the currentGDevicedata structure's color table, depending on the value of theprotectparameter. A protected entry can't be changed by other applications.ProtectEntryreturns a protection error inQDErrif you attempt to protect an already protected entry. However, it can remove protection from any entry.