If C++ code already exists for your application, you can more
efficiently define the part interface using part information
statements. This involves the following steps:
- Determine the part features.
- Create a part information file using a text editor.
- Import the part information file.
To write part information statements, you need to be aware of
rules for statement composition. Some rules apply to all part
information. Others rules are specific to statements for
particular kinds of part information.
The following rules apply to all part information:
- All part information code lines begin with //VB in
columns 1-4. Between statements, lines that do not start
with //VB are ignored.
- You can arrange a statement on a single line or continue
it on multiple lines by using the VB continuation
statement.
- All part, class, function group, enumeration, and type
definition names must be unique.
- A single file can contain information about multiple
constructs. The VisualAge IDE works with only one part
per file, but you can include multiple enumerations and
type definitions used by the part.
- The part information about a specific part, class,
function group, enumeration, or type definition must be
contained in a single file.
- You cannot begin one type of information until you have
ended another. For example, you cannot put a
VBBeginEnumInfo statement between VBBeginPartInfo and
VBEndPartInfo statements. If you do, you will not be able
to import the part information.
- Part information statement parameters are separated by
commas. When you omit optional parameters between
specified parameters, you must include intervening
commas. You do not have to include commas after the last
specified parameter. For example, you can use the
VBComposerInfo statement to specify different types of
support information, only one of which is required. The
following statements are acceptable:
//VBComposerInfo: visual
//VBComposerInfo: visual,803,cppres,primitive
//VBComposerInfo: visual,,,primitive
The following statement is not acceptable:
//VBComposerInfo: visual,primitive
Adding Part Information for
Visual Composition
Defining Part Interfaces for
Visual Composition
Part Information
Statements and Files