mobileFX JavaScriptX - Google V8 JavaScript Embedded Framework
JavaScriptXLib ActiveX DLL / Module Object / Run Method

Required. String name of the procedure to run.

Variant Params Array of scalar arguments.

In This Topic
    Run Method
    In This Topic
    Description
    Call a procedure defined in the module
    Syntax
    Visual Basic
    Public Function Run( _
       ByVal ProcedureName As String, _
       ByRef Parameters() As Variant _
    ) As Variant
    Parameters
    ProcedureName

    Required. String name of the procedure to run.

    Parameters

    Variant Params Array of scalar arguments.

    Return Type

    Variant containing the result of Run.

    Example
    Private Sub Form_Load()
        
        Dim SC As ScriptControl
        Dim m As Module
        Dim Result As Variant
        
        Set SC = New ScriptControl
        SC.Language = "JavaScript"
        SC.AllowUI = True
        SC.SitehWnd = Me.hWnd
        SC.UseSafeSubset = False
        SC.Timeout = 60
            
        Set m = SC.Modules.Add("MyModule")
        m.AddCode "function goo(a,b,c){ return a+b+c; }"
        
        m.Run "goo", 1, 2, 3
            
    End Sub
    See Also