Defining Forms

The Visual Basic sample application included on your Component Enabler CD-ROM is provided as a guideline to assist you to develop and customize your own use of Component Enabler. There is no warranty of any nature extended to cover your use of the sample code described in this section.

The sample application contains instructions for drawing a form and the code for placing data into the form and capturing the data entered on the form.

The first part of the form contains a row of buttons. These are defined as follows:

Private Sub FIR_Click()
DoMaint "FIR"
End Sub

When the user clicks this button, the program calls the subroutine DoMaint and passes it the string "FIR" as an argument. You can call the same subroutine for each button, but pass a different string for each.

When DoMaint is called during processing, it inserts the value of the string into the equivalent of the Maint field for transmission to the host system.

Private Sub DoMaint (ByVal maint As String)
Dim ret As Integer