The information in this article applies to:
SUMMARY
The version of VBScript (VBS) provided with Active Server Pages currently
does not have access to the values of constants defined by the Scripting
object. As a result, you must provide a definition of the constants you
wish to use in your scripts. Because the documentation does not provide the
values for these constants, it can be difficult to determine what the
numerical value is for a given constant.
If you cut and paste this code into an .asp file, you get the following
error because VBS doesn't recognize "ForAppending":
The best approach is to use a server-side include file to provide a definition of the constants for your script. This is similar to using the Adovbs.inc or Adojavas.inc files provided with ADO. MORE INFORMATION
Here is a list of the values of the most commonly used constants for the
Scripting object:
These are determined by viewing the Microsoft Scripting Runtime type library, contained in Scrrun.dll, in the Visual Basic Object Browser. To provide an include file that defines these values, paste the text below into a file called Filevbs.inc, and save it to a virtual root. Then add an include directive, similar to the one below, to the ASP file that needs to access the definitions of these constants.
(Save the text below to file: Filevbs.inc)
REFERENCESFor the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site: http://support.microsoft.com/support/vinterdev/ Additional query words:
Keywords : kberrmsg kbdocfix kbASP kbGrpASP kbiis400 kbiis500 kbFSO |
Last Reviewed: December 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |