Call a Procedure from a Procedure in a Different Script Name

Hawkeye

New member
Using HE Exec 4.6.1 with Hescript.

I can successfully call a procedure from a procedure, if it’s in the same script name. Is it possible to call a procedure from a procedure with a different script name?

Example;
CustMain.Test1 calls the procedure Test2 in CustTest or CustTest.Test2.

Thanks,
 
Last edited:
You can try unofficial internal functions:
Code:
RunSimpleProcedure(const FullName: String);
RunSimpleProcOrFunc(const FullName: String);
However, they are limited: you can’t pass parameters for instance.

Demo:

In CustMain.Test1, you could have:
Code:
RunSimpleProcedure("CustTest.Test2");
In CustTest, it should be like:
Code:
procedure Test2;
begin
 ...
end;
 
Last edited:
Back
Top