MoneyWorks Manual
SetFieldValue (windowRef, fieldNumOrName, stringValue)
Attempts to set the user interface field to the given value. Further validation may be invoked. The actual value set in the field is returned by the function. Works with check boxes and popups as well.
For editable text fields, this will set the content of the field to stringValue
.
For popup menu controls, it will select the item matching stringValue
. You can include an @ wildcard at the end of a partial item name.
Special behaviours
Setting a button's value to "1"
is equivalent to clicking the button.
For buttons, checkboxes, and radio buttons, you must only set a value of "1"
or "0"
. Any other value will set the title of the control.
In v9.2.3 and later, you can change the tab definition of a tab control in a custom window by setting a semicolon-delimited list of tab names.
In v9.2.3 and later, you can include a fourth numeric flags parameter. A flag of 1 => append the text to an editable text object. A flag value of 2 => set the value of the control without changing the dirty state of the window.
Availability: within an MWScript handler