AllowUI Property

 

Description

 

Sets or returns a Boolean value that indicates whether a running script, or the ScriptControl itself, is allowed to display user-interface elements. Read/write.

 

PowerBASIC Syntax

 

PROPERTY GET AllowUI () AS INTEGER

PROPERTY SET AllowUI (BYVAL pfAllowUI AS INTEGER)

 

Arguments

 

pfAllowUI

Boolean value that is True (-1) if display of user-interface elements is allowed; False (0) if it is not.

 

Remarks

 

The AllowUI property applies to user-interface elements displayed by the ScriptControl itself or user-interface elements displayed by the scripting engines.

 

In VBScript, for example, if AllowUI is False, the MsgBox statement will not work. Note that if AllowUI is False, there is no way to notify a user of the occurrence of a TimeOut event.

 

Example [PowerBASIC]

 

#INCLUDE "MSSCRIPT.INC"

 

LOCAL pSc AS IScriptControl

 

' Creates an instance of the Microsoft Script Control

pSc = NEWCOM "MSScriptControl.ScriptControl"

' Deactivate the user interface

pSc.AllowUI = %VARIANT_TRUE

 

Valid XHTML 1.0 Transitional