SetValue: Difference between revisions

From VisionaireWiki
Jump to navigation Jump to search
(New page: ==setValue== Lua Syntax: <pre>setValue(field, value, {flags=1, index = int})</pre> ===Arguments=== ====field==== :'''int''' - Data field which will be set. ====value==== :'''VARIANT...)
 
(Removing all content from page)
Line 1: Line 1:
==setValue==


Lua Syntax:
<pre>setValue(field, value, {flags=1,
    index = int})</pre>
===Arguments===
====field====
:'''int''' - Data field which will be set.
====value====
:'''VARIANT''' - Value to set. The type of the value must match the type of the field. E.g. if the field type is t_int then the value type must also be t_int.
===Flags===
====i/index====
:If specified then an existing list element at the given index will modified. In this case the field type must be of a list-type (t_vint, t_links, ...).
===Return Values===
None.

Revision as of 10:50, 25 October 2008