The KEY function looks up the specified key name in the specified application section of the specified file and returns a key value. If the key, application, or file is not found, then the KEY function returns an empty string.
The KEY function has the following format:
KEY(filename, [application_name, ]key_name)
The KEY function accepts the following parameters:
filename (string)
Specifies the file. In the specified file, comment lines start with a semicolon, pound sign, or two forward slashes. Comment lines, blank lines, and leading and trailing spaces are ignored.
application_name (string)
(Optional) Specifies the name of the application section. In the specified file, application names are enclosed by square brackets and specify the beginning of an application section: [application_name]. Application names are case-sensitive.
key_name (string)
Specifies the name of the key. In the specified file, key names and values are enclosed by angle brackets and paired by an equal sign, one pair per line: <key_name>=<key_value>. Key names are case-sensitive.
The KEY function returns a string.
Privileged: Yes
LDAP Only: No
Return_value=KEY('application.dat', 'login user')
Return_value='key_value'
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |