CONTAINER
PLBCMP GUI Only
The CONTAINER instruction defines a container object variable that enables you to add insertable objects to your program. To define a CONTAINER object, use the following statement format:
|
|
|
|
|
Where:
label
Optional. A Data Label.
value
Optional. A string literal that uniquely identifies an interface for an OLE insertable object.
Flags Affected: NONE
Note the following:
The CONTAINER object is implemented as an OLE Container Client interface that allows PL/B to server as a container for OLE insertable objects such as an Excel chart.
Container objects can be manipulated using the Automation interface.
The OLE container object is a placeholder on a form for an OLE insertable object.
The object can be created at run time or created with the designer and loaded at runtime.
The OLE insertable object can be deleted or changed at runtime.
An OLE container object can only contain one OLE insertable object at a time.
The size of the {value} literal is truncated to thirty-nine (39) characters.
The properties for a CONTAINER object are available as two groups:
The first group is defined by the normal PL/B property set. These properties are under direct control of the runtime and are defined in the list above.
The second group of properties is provided only via the Automation interface defined for the CLASS identifier. The user must refer to vendor-supplied documentation for specific properties. The PLBDSIGN browser provides a quick reference to some information.
The properties available through the Automation interface use the following syntax:
*{name}={value}
or
@{svar}={value}
Where:
The PL/B implementation allows event programming. The user should reference the vendor documentation for the OLE Insertable object to determine event values. The PLBDSIGN browse capability retrieves quick reference information about an OLE insertable object.
When a CONTAINER
object method is used, the method name identifier is determined by referencing the vendor documentation.
The method names are not case sensitive. The method can be specified as a keyword form or as a character
variable with a leading '@' character. The acceptable syntax forms are as follows
{object}.methodname GIVING {result} USING
{param}
or
{object}.@{svar} GIVING {result} USING {param]
The {result} is the expected return value for the method. The variable types for {result} can be a string variable, numeric variable, VARIANT object, or AUTOMATION object. Please reference OLE Insertable objects vendor documentation for expected return values.
The object method parameters identify the expected values required for the {method}.
The keyword name of a given {param} can be determined from the OLE Insertable object vendor documentation.
The {param} keyword names may or may not be used. If the {param} name is not specified, the parameter
value must be placed into the {param} list at a valid position as documented for the method. The {param}
can have one of the following syntax forms:
{value}
or
*{name}={value}
or
@{svar}={value}
Where:
This object is not available when using the PL/B Web Server.
See Also: Object Definitions, Object Output Instructions
![]() |