I have this little problem:
I have done a lot of multipurpose functions, that are useful for a lot of scripts that i have done. The problem is that i would like to include this scripts in my scripts file like #include in C, because the CALL function is limitative for me, for example with a CALL i cannot Pass Paramters.
There is a way to do this??.Example:
File A.Kix
Function Test(Parm1,Parm2)
...do Something
Test=Value
EndFunction
File B.Kix
#include A.Kix
MyValue=Test(Value1,Value2)
Quit
But the FUNCTION must stay in the same Kix file where i call it. What i need is a file where i have some FUNCTIONS (only Functions) and another file, the Main Script where, when i need, i call the functions that stay on the file where i stored my generic routines.
I want to do that, because i have a lot of routine that are the same in many scripts, and i would like to group these generic function in one kix file. I can use CALL Keyword: is good (so i can call an external file), but i cannot pass parameters, in this case i must use Global Variables. If is is possible to call a function that came from an external file is better.