About the Visual Basic Sample Program

The Visual Basic Sample Program is built with Microsoft Visual Basic Version 4.0, demonstrating the usage of all three Production Reporting ctiveX controls.

The program is a Graphical User Interface (GUI) that uses all the properties and methods of these controls. The sample directory of the installation contains an executable file tryvbocx.exe (for which all the Visual Basic supporting files have been installed onto the system), as well as its source code. If you have Visual Basic, you can load the project, view its source code, and do further experiments. If you do not have Visual Basic, you can still view the source code (in *.frm files). Do a search on "Sub", and see howSQR Production Reporting Activator objects and methods are used.

The program has four top-level menu items. The first three are for Production Reporting ActiveX Controls, and the last one is Help. The Help menu item displays an About box when the program starts, explaining the basic functions and providing some notes. The other three menus items reflect the methods of the ActiveX Controls, providing minimal extra functions other than displaying results (on the prompt at the bottom of the window), error handling (using Visual Basic’s ON ERROR statement and Err object, which is the error object thrown from inside the ActiveX Control’s), and other GUI elements to view or set properties. The following sections briefly describe each group.