![]() ![]() ' This means the control hasn't been installed on the client. ' This means the control is available on the client. To debug WSH scripts in Microsoft Visual InterDev, the Microsoft Script Debugger, or any other debugger, use the following command-line syntax to start the script: wscript.exe //d This code informs the user when a runtime error has occurred and gives the user a choice to debug the application.' This procedure attempts to create an Agent Control object. The following sample demonstrates how to check for the Agent control without triggering an auto-download of the control (as would happen if you included an tag for the control on the page): With VBScript (2.0 or later), you can verify whether Microsoft Agent is installed by trying to create the object and checking to see if it exists. For compatibility, use only the former syntax for events. You can also specify an event handler using the tag's For.Event syntax: Īlthough Microsoft Internet Explorer supports this latter syntax, not all browsers do. ![]() To access the programming interface, use the name of control you assign in the tag, followed by the subobject (if any), the name of the method or property, and any parameters or values supported by the method or property: agent.Method parameter, įor events, include the name of the control followed by the name of the event and any parameters: Sub agent_event (ByVal parameter) To program Microsoft Agent from VBScript, use the HTML tags. You can download VBScript 2.0 and obtain further information on VBScript at the Microsoft Downloads site and the Microsoft VBScript site. While a script is running in Runtime, the Command Window of the debugger can be used, for example, to compile and modify values of tags and properties in. Although earlier versions of VBScript may work with Agent, they lack certain functions that you may want to use. VBScript 2.0 (or later) is recommended for use with Agent. For other browsers, contact your vendor about support. VBScript is a programming language included with Microsoft Internet Explorer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |