This function allows the client application to execute a TCL command in the current database account.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function Execute( _ 
   ByVal command As String _ 
) As Boolean
C#
public bool Execute(
   string command
)
C++
public:
 bool Execute(
   String command
) sealed 
J#
public bool Execute(
   string command
)
JScript
public  function Execute(
   command : String
) : bool

Parameters

command
is the TCL command to be executed

Return Value

True

Remarks

After this function returns the captured data is available in the capturing property and message numbers in returning property.

The example will connect to the multivalue and issue the WHO tcl command

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.Connect("localhost",9000,"dm","")
 If returncode = True then
    returncode = mvsp.Execute("WHO")
    Msgbox(mvsp.capturing) ' Display captured data in the capturing property
 End if
 

Example 2 shows stacked data into the execute
 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.Connect("localhost",9000,"dm","")
 If returncode = True then
    mvsp.data = "COPYCP"
    returncode = mvsp.Execute("COPY MD CP") ' Will copy the item CP to COPYCP in the MD
 End if
 returncode = mvsp.CloseConnection()
 

See Also