When you create a VBA event handler for FORMS, click to edit VBA source code. The window is displayed.
In the window you can:
Perform simple text editing on the VBA code (copy = , cut = and paste = )
Open and save text files
Compile and run VBA code
All VBA code is color-coded as you type it. Which words are color-coded and which colors are used is controlled by FORMS5_VBA.ini, a file located in the program directory, normally C:\Program Files\ReadSoft\FORMS\Bin.
All predefined constants used in the VBA editor (for example VB_OK) are color-coded blue. If an undefined constant is used, no compilation error or warning is displayed. It is defined as 0 and the color changes to black.
The maximum file size is 64 kB.
The menu has these commands:
|
Command |
Description |
|
|
Loads a file into the edit window. |
|
|
Closes the window and saves any changes made. |
|
|
Saves the contents of the edit window to a file. |
|
|
Closes the window without saving any changes. |
The menu has these commands:
|
Command |
Description |
|
|
Compiles the contents of the edit window. Compilation errors appear in a dialog that contains information about the errors. If compilation is successful, is activated. |
|
|
The VBA function for the event is called. Note that if no function is named in the dialog, nothing happens when you select . |
Event handlers with parameters report execution errors when you try to execute them. This is because they must be called and receive proper parameters from other FORMS modules. The Manager does not provide any parameters, and this causes runtime errors.
On the menu you can choose one of these types of help:
|
Command |
Description |
|
|
Opens Cypress Enable Language Reference, a PDF document that contains VBA programming information. Available in English only. |
|
|
This help file. Available in English only. |