ACCOUNT.PATH()

ACCOUNT.PATH()

Top  Previous  Next

 

The ACCOUNT.PATH() function returns the pathname corresponding to the supplied account name.

 

 

Format

 

ACCOUNT.PATH(account)

 

where

 

accountis the account name for which the pathname is required.

 

 

The ACCOUNT.PATH() function allows an application to find the pathname of an account. The account name will be converted to uppercase internally. If the account does not exist, a null string is returned.

 

 

Example

 

ACC.PATH = ACCOUNT.PATH("SALES")

IF ACC.PATH = "" THEN STOP "Sales account not found"

 

This program fragment looks up the pathname of the SALES account. If it cannot be found, the program terminates with an error message.