Agilent Technologies E5071C Manual page 1094

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

Making a Preparation Before Coding
A Project and Three Type of Modules
Displaying a Code Window
Other topics about Operation Basics
A Project and Three Type of Modules
Project Explorer displays a list of files (modules) that are used in the
E5071C VBA. This section describes a project composed of a number of
files (modules) and three types of modules ("user form", "standard," and
"class"). Each type of module serves its own purposes as described below.
Project
When you develop an application within the E5071C's VBA environment,
you use a number of VBA program files (modules), and manage them as
one project. The project is saved with the file extension ".vba".
User Form
A user form contains controls such as buttons and text boxes. You can
code event-driven procedures that are invoked when a particular event
occurs on a particular control, thereby creating a user interface. The user
form is saved with the file extension ".frm".
Standard module
A standard module contains a collection of one or more procedures
(subprograms enclosed between Sub and End Sub). One typical use of a
standard module is to contain shared subroutines and globally called
functions. The standard module is saved with the file extension ".bas".
Class Module
A class module contains both data and procedures and acts as one object.
Once you have created a class module that serves as an object, you can
create any number of instances of that object by naming each instance as
an object variable. While each procedure must be unique in a standard
module, you can have multiple instances of an object created through a
class module. The class module is saved with the file extension ".cls".
Displaying a Code Window
The code windows appear on the Visual Basic Editor by inserting the
modules in a project. You can do coding (programming) on this code
windows practically.
The E5071C's VBA environment does not allow you to manage multiple
projects. When the current project is existing in the Visual Basic Editor by
Programming
1321

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents