QUOTE (RoadRoach58 @ November 27, 2013 12:00 pm) |
Updating a dialog box based on changes in that box is not intuitively obvious to innocent lookers on. ![]() |
FYI, there are two ways to do this, depending on what you want to change/update:
1) Update the form element variable. For example, if you had a checkbox named checkbox1, you could set it to "checked" using:
GSK |
$Checkbox1=TRUE |
Or, if you have a checkboxlist named CheckBoxList1 with six checkboxes named Option1....Option6:

you would use the following to set Option1 and Option3 to true (checked):
GSK |
$CheckListBox1="Option1;Option3" |
And the result when the form is displayed would be:

To check all options in this case, you would use:
GSK |
$CheckListBox1="Option1;Option2;Option3;Option4;Option5;Option6" |
2) The other way to update a form element using FormEdit(). For example, to dynamically change the caption of a button named Button1 in a form named Form1, you would use:
GSK |
$Form1 = editform($Form1,"Button1","Caption","New Caption") |