Hi Chuck Hunt,
The functions from other scripts units can be referenced based on where it is created !
Let me assume you have your "Logon" function in "LogonScript" and "Main" function in "MainScript"
1. If Both "LogonScript" and "MainScript" scripts are available in same project :
In the "MainScript" script unit refer the "LogonScript" script unit just by adding "USEUNIT" statement as below -
For JScript ---> //USEUNIT LogonScript
Don't forget to comment it and it should be in the first line of "MainScript" unit.
(This is similar to using #include in c language)
2. If "LogonScript" and "MainScript" scripts are available in different projects :
i. Add the "Logon" file by right clicking "Script" project item in the project where "MainScript" script unit is present and "Add => Existing Item"
ii. Now browse for "LogonScript" script unit and add it.
iii. Now your "LogonScript" unit is available as reference only. It is not duplicated.
In the "MainScript" script unit refer the "LogonScript" script unit just by adding "USEUNIT" statement as below -
For JScript ---> //USEUNIT LogonScript
Don't forget to comment it and it should be in the first line of "Main" script.
(This is similar to using #include in c language)
After adding the "USEUNIT" statement, call the function as ==> LogonScriipt.Logon()
Hope it helps you :) Have a great day !