Default Form Options

You get this window when you choose Tools->Options from the menu bar, and click the Default Form tab. This window is where you set options for generating Visual Basic default forms and associated files.

Fields

The following table explains the fields on this window.

Table 7-6 Default Form Options

Topic Section Field Description

Form Options

Generate Test Code checkbox

Indicates whether you want to generate code from the Workstation Objects window (Declarations, Usage, Cleanup code) into a Visual Basic form automatically when a new default form is generated. (In the figure, this is on.)

Generate Project File checkbox

Indicates whether you want to generate a Visual Basic project file whenever you generate a form. (In the figure, this is on.)

Visual Basic Version

Indicates whether you want to generate a form for Visual Basic 4.0 or 5.0

Housekeeping

Location

Indicates the default location to which Visual Basic forms are generated.

If this directory does not exist, the Application Builder prompts you when you try to generate a default form and gives you the option of generating the form into the current directory.

Confirm on overwrite

Enables or disables a confirmation prompt when a given form, project, or .frx file already exists. (In the figure, this is on.)

Description

You can use the Active Expert Application Builder to generate a Visual Basic form and project file on an operation (a TUXEDO service). You can configure the form (on this Options window) to contain the declaration, usage, and cleanup code from the Workstation Objects window. This code is generated into the appropriate event handlers for the form. Exporting your client source code to a Visual Basic form is a convenient way to run and test a particular TUXEDO service during development.

With simple automation server objects, only the Visual Basic form (.frm file) is necessary. ActiveX controls require the generation of the Visual Basic project file (.vbp file), and a binary (.frx file) that contains information about the control.

Buttons

When you have set these options as needed, click OK to save your changes and close the window. (Or click Cancel to close the window without saving your changes.)

See Also

Using Visual Basic Forms and Related Files

How to Generate a Visual Basic Form

To generate a Visual Basic form for an operation, select an operation in the Workstation Objects window and choose Tools->Generate Default Form from the menu bar.

This causes a Visual Basic form to be generated on the selected operation. The form is saved in the default location showing for the Default Form options.

If you set options to generate a project file as well, the project file is also saved in the default location. (Project files have a .vbp extension.) If the interface is an ActiveX control (.OCX), a .frx file is also generated.