How To Use Script Control Modules and Procedures Collections (184745)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic for Applications 5.0
This article was previously published under Q184745 SUMMARY
This article demonstrates how to use the Modules and Procedures properties
of the Microsoft Script control to segment code. It also demonstrates how
you can dynamically determine the number of arguments and whether the
procedure is a Function or Sub.
REFERENCES
For information about obtaining the Script control, please see the
following article in the Microsoft Knowledge Base:
184739
: INFO: Where to Obtain the Script Control
For additional information and examples on calling procedures in the Global
module, please see the following article in the Microsoft Knowledge Base:
184740
: How To Call Functions Using the Script Control
Microsoft Script control Help Topics:
HasReturnValue Property
NumArgs Property
AddCode Method
Run Method
Modules Collection
Procedures Collection
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto kbScript KB184745 |
---|
|