GetWebStyle Method


PLB Web Only, 9.7C

 

The GetWebStyle method retrieves a specific CSS style for a PWS object which is implemented as a visible HTML object. The method uses the following format:

 

[label]

{object}.GetWebStyle

[GIVING {return}] [USING [*CssName}=]{cssname}:

 

 

[[*Flags=]{flags}]

Where:

Where:

{label}
Optional. A Program Execution Label.
{object}
Required. A PWS object type that is being accessed.
{return}
Optional. A Character String Variable that returns the CSS style value.
{CssName}
Required. A Character String Variable or Literal that specifies the CSS style name.
{Flags}
Optional. A Numeric Variable or Literal that invokes special behaviors for the method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. This method dynamically obtains the CSS styles as described at this link:

    http://www.w3schools.com/css/default.asp
     

  2. The EOS flag is set if the returned CSS style value string must be truncated before being stored into the {return} Character variable.

  3. The ZERO flag is always cleared.

  4. The OVER flag is always cleared.

  5. The optional {flags} bit mask values changes the execution behavior of the GetWebStyle method as follows:

  6.  

    Value

    Meaning

    0x01

    This bit value causes the CSS style to be obtained from the HTML <div> enclosing the {object} HTML object.

Example:

     LabelText2.GetWebStyle GIVING StrValue Using "background-color"

 

 

See Also: Objects



PL/B Language Reference GetWebID Method RemoveWebClass Method