Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ezeio2:scriptref:setfield [2019-08-17 18:29] – created andreh | ezeio2:scriptref:setfield [2020-09-16 23:15] (current) – andreh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Script reference ====== | + | ==== SetField/ |
- | + | ||
- | ==== SetField( fieldno, value ) ==== | + | |
Set the value of a field | Set the value of a field | ||
Line 8: | Line 6: | ||
< | < | ||
+ | < | ||
- | Set the integer value of a field and flag the value as changed. | + | Set the integer |
Note that the Math logic for the field is continuously evaluated, so if the math logic results in a different value, it will immediately overwrite the value set by this command. To only set the field from script logic, leave the Math blank. | Note that the Math logic for the field is continuously evaluated, so if the math logic results in a different value, it will immediately overwrite the value set by this command. To only set the field from script logic, leave the Math blank. | ||
Line 16: | Line 15: | ||
| '' | | '' | ||
- | | '' | + | | '' |
=== Return value === | === Return value === | ||
Line 30: | Line 29: | ||
// Field 4 is set to the value 123. | // Field 4 is set to the value 123. | ||
+ | |||
+ | | ||
+ | |||
+ | // Field 4 is set to the value 123.45. | ||
+ | |||
</ | </ | ||