Exclusive

Controls whether or not other Windows programs will get any time to execute.

Syntax:

Exclusive (mode)

Parameters:

(i) mode @ON or @OFF.

Returns:

(i) previous Exclusive mode.

 

Exclusive(@OFF) is the default mode. In this mode, the WIL Interpreter is well-behaved toward other Windows applications.

Exclusive(@ON) allows WIL programs to run somewhat faster, but causes the WIL Interpreter to be "greedier" about sharing processing time with other active Windows applications. For the most part, this mode is useful only when you have a series of WIL statements which must be executed in quick succession.

 

Example:
Exclusive(@ON)
x = 0
start = TimeDate( )
:add
x = x + 1
If x < 1000 Then Goto add
stop = TimeDate( )
Message("Times", "Start: ":start:@CRLF:"Stop:  ":stop)
Exclusive(@OFF)
See Also:

TimeDelay, Yield