CONTROL
PLBCMP GUI Only
The CONTROL instruction defines a control object variable. To define a CONTROL object, use the following statement format:
|
|
|
|
|
Where:
label
Optional. A Data Label.
target
Optional. A string literal that uniquely identifies an interface for a CONTROL object.
Flags Affected: NONE
Note the following:
The CONTROL object is implemented as an ActiveX Control Client interface that allows PL/B to use ActiveX controls.
CONTROL objects can be manipulated using the Automation interface.
If the CLASS identifier is not provided for the CONTROL variable declaration, it must be supplied during the CREATE operation. If the CLASS identifier is supplied for the CONTROL variable declaration, it cannot be specified for the CREATE operation.
The size of the {value} literal is truncated to thirty-nine (39) characters.
The properties for a CONTROL 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 ActiveX control object to determine event values. The PLBDSIGN browse capability retrieves quick reference information about an OLE insertable object.
When a CONTROL
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 ActiveX control 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 ActiveX control 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
![]() |