ISProfileForm.FindVar

Description

This function finds the variable value of the form with the specified name.

Syntax

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

Return Value

object

Returns the variable value of the form with the specified name.

Example

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")  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0