Before using the procedures and objects defined in another module, a script must indicate the name of the file containing the procedure or object definitions. You must place a '#Uses statement at the beginning of a script, before any procedure definitions, to instruct Scripter to load all modules used by the script.
'#Uses " c:\ utils.bas"
'#Uses " test.cls"
Sub Main
'use the procedures and object defined in UTILS.BAS and TEST.CLS
End Sub
Scripter does not permit cyclic '#Uses statements. That is, if module A uses module B, module B cannot use procedures from module A.
See Also
Private and Public Definitions