Executes a JavaScript function.
Required. String name of the procedure to run.
Required. An array containing any parameters for the procedure being run.
Executes a JavaScript function.
Visual Basic |
---|
Public Function Run( _ ByVal ProcedureName As String, _ ByRef Parameters() As Variant _ ) As Variant |
Required. String name of the procedure to run.
Required. An array containing any parameters for the procedure being run.
Variant containing the result of Run.
Private Sub Form_Load() Set SC = New ScriptControl SC.Language = "JavaScript" SC.AllowUI = True SC.SitehWnd = Me.hWnd SC.UseSafeSubset = False SC.Timeout = 60 Dim Result As Variant Result = SC.Run("eval", "1+2") End Sub