EBSILON®Professional Online Documentation
Data Transfer and Results Display / ATL - Interface / Callback
In This Topic
    Callback
    In This Topic

    Implementing the Callback Function

    The Callback-Function enables you to call a function in the EbsScript from a dialog box. To do this, the "CallBack"-Method of the IEbsScript-Object is to be called. Thereby, up to 30 VARIANT-Parameters can be exchanged with EbsScript.

     

    In EbsScript, the Callback-Function must be identified by the key word "callback". Example:

    procedure proc(var r1:real; var r2:real; var str:string);callback;

    The dialog is activated by the call "callEbsScriptServer". This call must contain, as the first argument, a string with the DLL-name and method, then two random parameters and as the last argument the Callback-Function (the name of the first argument can also be taken from the rgs-file).