Contents - Index


OnRunAnonymousFunction

 

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.

 

 

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