MEMBER function
Parses a reference to a member of an ABL r-code library and returns the simple member name.
Syntax
string
The MEMBER function parses a character string in the form
path-name<<member-name>>
, wherepath-name
is the pathname of a library andmember-name
is the name of a file within the library, and returnsmember-name
. The double angle brackets indicate thatmember-name
is a file in a library. If the string is not in this form, the MEMBER function returns the Unknown value (?
).Use the MEMBER function with the SEARCH function to determine whether a file is in a library. If a data file is in a library, you must first extract the file from the library in order to read it. (See OpenEdge Deployment: Managing ABL Applications for more information on extracting a file from a library.) The SEARCH function returns a character string in the form
path-name<<member-name>>
if it finds a file in a library.ExampleThis procedure prompts for the name of a file. Using this value, the procedure searches for the file. If it does not find the file, it displays a message and ceases operation. If it does find the file, it tests to see if the file is in a library. If so, the procedure displays the filename and the name of the library. Otherwise, the procedure displays the pathname of the file returned by SEARCH.
See also
OpenEdge Release 10.2B
|