Article ID: 184740 - Last Review: July 15, 2004 - Revision: 4.2 How To Call Functions Using the Script ControlThis article was previously published under Q184740 On This PageSUMMARY
This article provides sample code for the Script control that demonstrates
various methods of calling script functions from Visual Basic.
MORE INFORMATION
IMPORTANT: Microsoft provides programming examples for illustration only,
without warranty either expressed or implied, including, but not limited
to, the implied warranties of merchantability and/or fitness for a
particular purpose. This article assumes that you are familiar with the
programming language being demonstrated and the tools used to create and
debug procedures.
The Script control can host VBScript, JavaScript, and any other compliant scripting language, so your users can script your application in a similar manner to using VBScript or JavaScript to provide additional functionality for Web pages. The following article in the Microsoft Knowledge Base describes how to obtain the Script control: 184739
(http://support.microsoft.com/kb/184739/EN-US/
)
: INFO: Where to Obtain the Script Control
The Script control provides four methods for calling Sub and Function script routines:
EvalThe calling convention is:NOTE: This method cannot be used to call Subroutines. RunThe calling convention is:ExecuteThe calling convention is:Module MethodThe calling convention is:The default module is given in the GlobalModule constant, such as: For more information on ScriptControl modules, please see the following article in the Microsoft Knowledge Base: 184745
(http://support.microsoft.com/kb/184745/EN-US/
)
: How To Use Script Control Modules and Procedures Collections
Example
REFERENCES
For information about obtaining the Script control, please see the
following article in the Microsoft Knowledge Base:
184739
(http://support.microsoft.com/kb/184739/EN-US/
)
: INFO: Where to Obtain the Script Control
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Malcolm Stewart, Microsoft Corporation APPLIES TO
| Article Translations
|
Back to the top
