The '#Uses Line

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.

Example

'#Uses "c:\

'#Uses "test.cls"

Sub Main

   'use the procedures and object defined in UTILS.BAS and

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

Module Types

Private and Public Definitions

Module Properties

Defining Object Properties and Methods

Class Module Example

Scripter BASIC Language

Object Hierarchy

Object List