File

Description

Returns the file name and extension for the current document.

Applies to

PSDocumentClass object

Syntax

psDocument.File( )

Returns

String

Usage

At runtime, File extracts the file name and extension from the PATH_INFO server environment variable.

Examples

Example 1

The following example returns the file name of the current document into a variable called myfile. If the URL for the current document were http://www.sybase.com/index.htm, the value of myfile would be index.htm after the call to File:

myfile = psDocument.File( );