Comments

Reference Comment

Syntax:

'#Reference {uuid}#vermajor.verminor#lcid#[path[#name]]

Description:
The Reference comment indicates that the current macro/module references the type library identified. Reference comment lines must be the first lines in the macro/module (following the global Attributes). Reference comments are in reverse priority (from lowest to highest). The IDE does not display the reference comments.

Parameter Description

uuid Type library's universally unique identifier.

lcid Type library's locale identifier.

path Type library's path.

name Type library's name.

Example

'#Reference {00025E01-0000-0000-C000-000000000046}#4.0#0#C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\DAO\DAO350.DLL#Microsoft DAO 3.5 Object Library

Uses Comment

Syntax:

'#Uses "module" [Only:[Win16|Win32]]

-or-

'$Include: "module"

Description:
The Uses comment indicates that the current macro/module uses public and friend symbols from the module. The Only option indicates that the module is only loaded for that Windows platform.

Parameter Description

module Public and Friend symbols from this module are accessible. If the module name is a relative path then the path is relative to the macro/module containing the Uses comment. For example, if module "A:\B\C\D.BAS" has this uses comment:
'#Uses "E.BAS"
then it uses "A:\B\C\E.BAS".

Example

'Macro A.WWB

'#Uses "B.WWB"

Sub Main

Debug.Print BFunc$("Hello") '"HELLO"

End Sub

'Module B.WWB

Public Function BFunc$(S$)

BFunc$ = UCase(S$)

End Sub