PathProgram()


Returns the program path as a character string.

Syntax

PathProgram() --> cPath

Arguments

None.

Returns

The CAPITAL program's path as a character string.

Description

This function returns the current location of the CAPITAL program as a character string. For example, "C:\CAPITAL\". This can be useful if you need to retrieve or check for the existence of files that you know are stored in the \CAPITAL directory, but the location of this directory will vary depending on which computer on the network accesses it.

Example

Check for existence of "logo.bmp" from any computer on your network:

If IsFile(PathProgram() + "Logo.bmp")

   Echo("Found Logo.bmp!")

Endif

____________________________

Related Topics:

Business Function List

PathCompany()

PathData()



CAPITAL VISUAL BUILDER