|
PathCompany()
Returns the program's current company folder path
as a character string.
Syntax
PathCompany() -->
cPath
Arguments
None.
Returns
The CAPITAL program's current company path as a
character string.
Description
This function returns the current location of the
CAPITAL program's company path as a character string. For example,
"C:\CAPITAL\MYFIRM\".
This can be useful if you need to retrieve or
check for the existence of files that you know are stored in the
\CAPITAL\MYFIRM folder, but the location of this folder will vary
depending on which computer on the network accesses it and which
company is currently open.
Example
Check for existence of a card file called
"NSWSales.dbf" from any computer on your network:
If
IsFile(PathCompany() + "NSWSales.dbf")
Echo("Found!")
Endif
____________________________
Related Topics
Business
Function List
PathData()
PathProgram()
|