QUIT

Purpose:

Terminates DADiSP as an ActiveX Automation Server.

Syntax:

INT result = Quit([in, optional] INT confirm)

confirm

-

Optional. An integer, confirm termination:

0:

no confirmation

1:

confirm termination (default)

Returns:

An integer, 1 if successful.

Example:

Visual Basic Example:

 

Dim DADiSP as Object

 

Connect to DADiSP

Set DADiSP = CreateObject("dadisp.application")

 

Create a 2 Window Worksheet without prompting

DADiSP.Execute("newworksheet(2, 0)")

 

Generate random data in W1

DADiSP.Execute("W1: grand(1000, 1)")

 

show it

DADiSP.Visible = 1

 

get integral of W1

DADiSP.Execute("W2: integ(W1)")

 

quit

DADiSP.Quit

 

 

Starts DADiSP as an ActiveX Automation server, creates a 2 Window Worksheet and places 1000 random samples in W1. DADiSP is made visible. W2 is set to the integration of W1 and DADiSP is terminated if confirmed.

Remarks:

DADiSP.Quit(0) terminates DADiSP immediately without user confirmation.

See Also:

EVALUATE

EXECUTE

GETDATA

PUTDATA

VISIBLE