GetProgramName Procedure

Returns the file name of the current program.

Syntax

[ sName = ] GetProgramName ( )

The GetProgramName procedure syntax has the following parts:

 

Name

Type

Description

sName

BString

Program file name

Comments

Returns the name of the current program shortcut.

The program name also can be accessed by using the internal variable, Program with its property Name as Program.Name.

Example

Print GetProgramName( )

! prints "EXAMPLE"

See Also

AProgram.Name, AVarProgram, GetDir, GetProgLastUpdate, GetProgramSerialNum, GetProgramUut, GetProgramVersion, GetUserName, Run