Just wanted to know if there is another way to call other routines with-in a unit.
For example, one of my Script is calling so many routines, so I have to use
USEUNIT name_of_unit2 etc... so I have so many of them and its making the script look so long, so just wondering if there was another way to do this?
You can use the Runner.CallMethod method to call the needed functions. In this case, you don't have to reference units containing them explicitly (that is, with the USEUNIT statement).
The method is described in the "Runner.CallMethod" help topic.
The units need to be included in the project (meaning, if you expand the "Scripts" node in project explorer, the units exist).
You do NOT need to call USEUNIT in all your units, though, in order to use the Runner.CallMethod() procedure to call code.
Just like with a compiled application, unless it is a compiled DLL that you can call a registered class for, you cannot use a unit of code unless that unit of code is included in some way within your project (like, for Delphi, it's in the DPR file somewhere).