Contents - Index - Top


OnRunAnonymousFunction

Interface AntViewDocument

 

Type: Event

Parameters: Integer Id Variant Params String Data Integer Error 

Returns: None

 

 

Results from RunAnonymousFunction

 

You can inspect the Params array as have been passed when calling the RunAnonymousFunction, but in order to do so you need to set the AnonymousFunctionReturnParams property to True.

 

The Error parameter can have the following values:

  0 all good, see the Data parameter for the results.

  1 unable to run the anonymous function,

  2 unable to cast the returned data as string

 

 

Example in VB6:

 

Private Sub Document_OnRunAnonymousFunction(ByVal Id As Long, ByVal Params As Variant, ByVal Data As String, ByVal Error As Long)

  If Id = 2 Then

    ' do nothing

  ElseIf Id = 3 Then

    ShowCurrencyRateResult Params, Data

  End If

End Sub

 

Example:

VB6 - Exchange Rates Example

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 04/16/2025