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:
|
|
|
|
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:
The ZERO flag is always set to True.
The EOS and OVER flag are always cleared.
When a WebView object is created on a WINDOW or HTMLCONTROL object, a WebView thread is created with an embedded browser.
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
![]() |