Calls the previously defined rule module on the MVSP Server.


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

Syntax

Visual Basic (Declaration)
Public Function MvCall( _ 
   ByVal arrayIn As String _ 
) As String
C#
public string MvCall(
   string arrayIn
)
C++
public:
 String MvCall(
   String arrayIn
) sealed 
J#
public string MvCall(
   string arrayIn
)
JScript
public  function MvCall(
   arrayIn : String
) : String

Parameters

arrayIn
is a string containing the data to be passed to the rule module. This string can be a dynamic array

Return Value

a string with the results from the called rule module (subroutine)

Remarks

If there is no valid connection or the rule module has not been setup then the function will return null and setup the statuscode and statusmessage properties with the correct error codes.

Example connects and runs the demo1.sub rulemodule in the MVDEMO account

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 Dim params as string = ""
 Dim results as string = ""
 returncode = mvsp.Connect("localhost",9000,"dm","")
 If returncode = True then
    returncode = mvsp.Logto("MVDEMO","")
    If returncode = True then
       mvsp.ruleModule = "DEMO1.SUB"
       params = "12" & chr(254) & "20"
       results = mvsp.MvCall(params)
       MsgBox(results)
    End if
 End if
 returncode = mvsp.CloseConnection()
 

See Also