WinStudio

Binding Components to Variables

Variables are mechanisms for storing data needed by WinStudio at run time. Variables have two important attributes that control the life span of their values and their visibility:

Variable Attribute Description

Global

A global variable is available to all forms. A nonglobal variable (also called a form variable) is available only to the form for which it was created.

Persistent     

Persistent variables maintain their values across executions of the form (for form variables) or the client program (for global variables). Nonpersistent variables do not have to be explicitly created. WinStudio creates them automatically as they are referenced.

To bind a component to a variable

  1. Open a form and enter Design Mode.
  2. Select a component.
  3. On the Component property sheet, click Binding, and then click the ellipsis (...) button.
  4. In the Type box, select Variable.
  5. Click Edit.
  6. In the Variable box, select the name of a variable.
  7. Click OK to return to the property sheet.

Related Topics

About Variables

Binding Components to Collections or Properties

Component Data Binding Types

Create, Copy, Edit, or Delete Variables

Maximum Length of Parameters and Values

Set Data Bindings for a Component

Tip: Referencing Collections Bound to Forms or Grids