FileName Property (AProgram)

Returns the file name of the program module.

Syntax

[ sFileName = ] Object.FileName

The FileName property syntax has the following parts:

 

Name

Type

Description

Object

AProgram

AProgram object

sFileName

BString

A string specifying the program module file name.

Comments

The return value contains the file path as entered by the user in design time. No conversion to absolute file path or replacement of path variables used is done.

Example

The following statement in the OnInit event of the active program module notes the initialization of the program in the log:

print "Initializing Program "; Program.Name; ", file = "; Program.FileName

Applies to

AProgram

See Also

ModuleType, Name