LlLinksetDataDelete

From Second Life Wiki
Revision as of 09:32, 26 October 2022 by Rider Linden (talk | contribs)
Jump to navigation Jump to search

Summary

Summary: llLinksetDataDelete, llLinksetDataDeleteProtected

The llLinksetDataDelete and llLinksetDataDeleteProtected functions erases a name:value pair from the linkset's datastore.

When this function successfully removes a name:value pair a linkset_data event is triggered in all scripts running in the linkset with an action of LINKSETDATA_DELETE and the name parameter set to the name that was removed. The value parameter in the event is set to an empty string.

llLinksetDataDelete

Function: integer llLinksetDataDelete( string name );

Removes an unprotected name:value pair from the linkset's datastore. If the pair was created
Returns an integer success or failure code.

• string name The key of the linkset name:value pair to be deleted.
All Issues ~ Search JIRA for related Bugs

llLinksetDataDeleteProtected

Function: integer llLinksetDataDeleteProtected( string name, string pass );

The llLinksetDataDeleteProtected function erases a protected name:value pair from the linkset's datastore.
Returns an integer success or failure code.

• string name The key of the linkset name:value pair to be deleted.The key of the linkset name:value pair to be deleted.
• string pass A pass phrase previously used to protect the name:value pair.
All Issues ~ Search JIRA for related Bugs

Constant Description
LINKSETDATA_OK 0 The name:value pair was written to the datastore.
LINKSETDATA_EMEMORY 1 A name:value pair was too large to write to the linkset datastore.
LINKSETDATA_ENOKEY 2 The name supplied to llLinksetDataWrite was empty.
LINKSETDATA_EPROTECTED 3 The name:value pair has been protected from overwrite in the linkset's datastore.
LINKSETDATA_NOTFOUND 4 The named key could not be found in the linkset's datastore when attempting to delete it.
LINKSETDATA_NOUPDATE 5 The name:value stored in the linkset was not changed by the write operation because the value stored matches the value written.

Caveats

  • If the name does not exist or the pass does not match, no event is triggered.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function integer llLinksetDataDelete( string name );
function integer llLinksetDataDeleteProtected( string name, string pass );