SetClass Method (HTMLCONTROL)
10.9, PLBCMP GUI Only
The SetClass method changes the class attribute in a HTML element contained in a HTMLCONTROL object. The method sets the class attribute in the HTML element that has an id attribute that matches the id parameter. This method uses the following format:
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A HTMLCONTROL that is accessed.
return
Optional. A Numeric Variable that always returns zero.
Id
Required. A Character String Variable or literal that contains the HTML element id attribute.
value
Required. A Character String Variable or literal that has the value string applied to the {name} data type.
flags
Optional. A Numeric Variable or decimal value that specifies a bit mask value that controls the behavior of this method.
Flags Affected: OVER, ZERO
Note the following:
This method changes the class attribute value in a HTML element contained in a HTMLCONTROL object.
The ZERO flag is always set TRUE.
The OVER flag is always set FALSE.
The {id} is a value that determines the HTML element used for data changes. The {id} string is matched against the id attribute of the HTML element.
The valid values for the {value} parameter can be one or more class names separated by spaces.
The {flags} parameter is a bitmask value that forces specialized behaviors for the execution of this method.
The {return} value will always be zero.
Example:
For a HTMLCONTROL that contains a HTML element as follows:
This PL/B SetClass method changes the class attribute value using the following instruction:
In this example, the new HTML element is updated as follows:
See Also: HTMLCONTROL Method Syntax
![]() |