This function finds the variable value of the form with the specified name.
object.FindVar(aVarName)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfileForm interface |
|
aVarName |
In, Required | string |
The name of the variable |
object
The first macro allows to save the value of the control. The second macro allows to restore the saved value of the control.
Dim aEdit
Set aEdit = Form.Controls_("Edit1")
Form.Vars("PreviousValue") = aEdit.Text
'--------------------------
Dim aEdit
Set aEdit = Form.Controls_("Edit1")
aEdit.Text = Form.FindVar("PreviousValue")