GetClass Method (HTMLCONTROL)
10.9, PLBCMP GUI Only
The GetClass method retrieves the class attribute from a HTML element contained in a HTMLCONTROL object. The method gets the class attribute from 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 Character String Variable that returns a list of current classes from a HTML element.
Id
Required. A Character String Variable or literal that contains the HTML element id attribute.
flags
Optional. A Numeric Variable or decimal value that specifies a bit mask value that controls the behavior of this method.
Flags Affected: EOS
Note the following:
This method retrieves the class attribute value from a HTML element contained in a HTMLCONTROL object.
The EOS flag is set if the returned data string is larger than the DIM variable used to receive the data.
The {id} is a value that determines the HTML element used for data retrieval. The {id} string is matched against the id attribute of the HTML element.
The {flags} parameter is a bitmask value that forces specialized behaviors for the execution of this method.
The {return} string is a list of current classes set for the HTML element..
Example of GetClass Method:
For a HTMLCONTROL that contains a HTML element as follows:
This PL/B GetClass method returns a value using the following instruction:
In this example, the class HTML attribute is retrieved from the HTML element with the id attribute of "MyEdit".
The MyValue variable returns a string as follows:
See Also: HTMLCONTROL Method Syntax
![]() |