Page 1 of 1

Calling an eValid instance from inside the script

PostPosted: Mon Jan 02, 2023 11:11 am
by DavidW
Hi.

Can you tell me how do you call an eValid instance from within the script?

Are there more than one way to accomplish this?

Thanks

Re: Calling an eValid instance from inside the script

PostPosted: Tue Jan 03, 2023 9:18 am
by eValid
DavidW wrote:Hi.

Can you tell me how do you call an eValid instance from within the script?

Are there more than one way to accomplish this?

Thanks


Thanks for posting your question, DavidW.

eValid supports two main modes of invoking scripts:

(1) a command-line invocation and (2) an in-script transfer of control.

(1) For the command line invocation see: http://e-valid.com/Products/Documentati ... html#index

As you can see, this is a robust interface, and you can pretty much do anything from the command line that you can from within a running eValid instance.

(2) Within a script you can transfer control to a different script with this command:

GoScript "[PATH]script-name" ["Data Substitution"] where the "parameters" are name/value pairs of the format: $Name1=Value1 $Name2=Value2 ...

Once you GoScript to another script you can't go back and, as a safety precaution, you can't GoScript to the script in which the script is embedded.

eValid thus prohibits "infinite loops" or self-referencing.

But here's a trick, this check in only one level deep and script A can call script B and then script B can call script A... if you really feel you have to.


-- eValid Support