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
Arguments
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
|