Reading from the current form.
A quick way:
This gets everything that is on the form and saves each item in an iternal database.
But not all items are saved:
Standard button items are not saved.
static text is not saved. If this is a problem then use an 'edit' item set to 'readonly'.
disabled controls are not saved.
Getting individual values from the 'savevals' database:
form(This, getval(termname, "Edit1", Val)),
Setting individual values to the 'savevals' database:
form(This, setval(termname, "Edit1", Val)),
Clearing all values saved under a given termname:
or, to clear everything:
Reading from another, concurrent, form.
You need to know the Context