EXECUTE

Purpose:

Executes a command string in DADiSP’s ActiveX Automation Server.

Syntax:

[out] INT result = Execute(

[in] BSTR "command")

"command"

-

A string, any valid expression.

Returns:

An integer, 1 if successful.

Example:

Visual Basic Example:

 

Dim DADiSP as Object

Dim status as Integer

 

’’’ Connect to DADiSP

Set DADiSP = CreateObject("dadisp.application")

 

’’’ Create a 2 Window Worksheet without prompting

Call DADiSP.Execute("Newworksheet(2, 0)")

 

’’’ Generate random data in W1, return status value

status = DADiSP.Execute("W1: Grand(1000, 1)")

 

’’’ show it

DADiSP.Visible = 1

 

 

Starts DADiSP as an ActiveX Automation server, creates a 2 Window Worksheet and places 1000 random samples in W1.

Remarks:

Any DADiSP command can be executed. Multiple statements are separated by semicolons.

 

EXECUTE evaluates the command string in the current Worksheet and returns the integer 1 if the command execution was successful.

 

See CALCULATE to evaluate a command string with optional arguments.

 

See EVALUATE to evaluate a command string and return the result as a string.

 

See GETDATA to return data from a command, Window or variable.

See Also:

CALCULATE

EVAL

EVALUATE

GETDATA

GETSERIES

MATLAB

PUTDATA

PUTSERIES

QUIT

VISIBLE