SetAsClient Method


10.5, PLBCMP GUI Only

 

The SetAsClient method assigns CLIENT methods to the current WINDOW. or HTMLCONTROL object Methods may then be executed for the embedded WebView browser thead created for the object. The method uses the following format:

 

[label]

{object}.SetAsClient

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A WINDOW or HTMLCONTROL object that is accessed.

return

Optional. A Numeric Variable that always returns a zero.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO flag is always set to True.

  2. The EOS and OVER flag are always cleared.

  3. When a WebView object is created on a WINDOW or HTMLCONTROL object, a WebView thread is created with an embedded browser.

  4. This method is only needed if a PL/B program has WebView objects created as children on multiple WINDOW objects at the same time or on HTMLCONTROL objects. In this case, the SetAsClient identifies which WebView client browser is accessed when CLIENT methods are used in a PL/B program.

 

 

See Also: HTMLCONTROL Method Syntax, WINDOW Methods

 



PL/B Language Reference Scale Method (WINDOW) SetForegroundWindow Method (WINDOW)