ASPCompiler ASPCompiler 1.0
ASP Compiler 1.1 documentation is under development. See also the examples.

Info collection

The Info collection contains important information often required by the CTS. It is implemented using the VarDictionary object and you may use the other methods supplied by the collection object. Actually there is no reason to add values to this collection - they are accessible only for the current script and cannot be used for communication with theother Compile Time Scripts in the file or attached to the file.

To inspect a value from the Info collection you could use the following syntax:

variable = Info("value_name")
or
variable = Info.Item("value_name")

Both are equivalent. The current version (1.1) supplies the following values - list is value_name - meaning of the value:

Value name Description
CurrentFile Full path name of the current file. This is the file from the project or in case of embedded script it can be the include file containing its script tag.
File Like previous but it is always the full path name of the currently processed file from the project (not include file).
FileRelative The currently processed file from the project  (not include file) - path name relative to the source root. For example if the file is:
C:\project\src\subdir\file.asp
And the project source root is:
C:\project\src
Then the FileRelative will hold the value:
subdir\file.asp
ProcType String containing the processing option for the current project's file. See processing options.
SiteRootPath Full path name of the source root directory of the project. Without trailing "\" character.
SiteRootPathOutput Full path of the output directory of the project. Without trailing "\" character.
FilePath Full path name of the directory containing the current file. In case of embedded CTS this will be the directory containing the include file in which the <SCRIPT> tag is found or the processed file if the script is found in the project's file.
FileRelativePath The relative (to the source root) path of the directory containing the current file from the project  (not include file). Without trailing "\"
FileNameOnly File name only without extension and path. This is the name of the file from the project  (not include file).
FileExtension File name's extension only. The file is always the currently processed file from the project (not include file)
newObjectsSite4All.nl Copyright 2001-2006 newObjects [ ]