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 DataFlex:
Procedure OnComRunAnonymousFunction Integer llId Variant llParams String llData Integer llError
If (llId=CFun_QueryCurrencyRate) Begin
// there's no direct result, we need to poll
Send none
End
Else If (llId=CFun_RateReceived) Begin
Send CurrencyRateResult llParams llData
End
End_Procedure
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/30/2024