Difference between revisions of "LlLinksetDataWrite"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|p1_type=string|p1_name=name|p1_desc=The name of the link set data key to be updated or created.
|p1_type=string|p1_name=name|p1_desc=The name of the link set data key to be updated or created.
|p2_type=string|p2_name=value|p2_desc=The value to assign to the named key
|p2_type=string|p2_name=value|p2_desc=The value to assign to the named key
|return_type=integer
|return_text=success or failure code.
|func_footnote
|func_footnote
|func_desc=The llLinksetDataWrite function creates or updates a key in the link set datastore, assigning it the string specified in the value parameter. If the value parameter is an empty string, the key is deleted.  
|func_desc=The llLinksetDataWrite function creates or updates a key in the link set datastore, assigning it the string specified in the value parameter. If the value parameter is an empty string, the key is deleted.  
This function returns 0 on success or an error code on failure.


When this function is called the [[linkset_data]] event is triggered in all scripts running in the link set with an action of [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_UPDATE]], or [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_DELETE]] if the key value pair is deleted.
When this function is called the [[linkset_data]] event is triggered in all scripts running in the link set with an action of [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_UPDATE]], or [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_DELETE]] if the key value pair is deleted.

Revision as of 12:45, 13 October 2022

Summary

Function: integer llLinksetDataWrite( string name, string value );

The llLinksetDataWrite function creates or updates a key in the link set datastore, assigning it the string specified in the value parameter. If the value parameter is an empty string, the key is deleted.

This function returns 0 on success or an error code on failure.

When this function is called the linkset_data event is triggered in all scripts running in the link set with an action of LINKSETDATA_UPDATE, or LINKSETDATA_DELETE if the key value pair is deleted.
Returns an integer success or failure code.

• string name The name of the link set data key to be updated or created.
• string value The value to assign to the named key

Examples

Deep Notes

Search JIRA for related Issues

Signature

function integer llLinksetDataWrite( string name, string value );