Declaration
ok, value, info = SetData(key, value, options)
Parameters
Parameter Name | Type | Description |
---|---|---|
key | string | Key of the data to be set. |
value | number, boolean, string, or table containing only these types | Value. |
options | ParaDataSetOptions | Additional metadata. |
Return Values
Response Name | Type | Description |
---|---|---|
ok | int | If the value is 0, the operation is successful. The subsequent fields are the set value and detailed information. |
value | number, boolean, string or table containing only these types | If the operation is successful, the set value is returned. Otherwise, an error message is returned. |
info | ParaDataInfo | If the operation is successful, the detailed information (such as version and metadata) is returned. |
Description
Sets data.