Queries, creates, saves, or modifies astring server database.
Default (Used only if name is specified.) A string containing a default value to be returned, if no match is found in the database for name.
Load A string specifying the pathname of a file of strings to be loaded, or merged with the existing string database. Strings merged into the database with the Load keyword that match existing strings supercede the existing string definitions in the database.
Save A string specifying the pathname in which to save the strings currently defined in the string database. If the file specified already exists, the contents will be overwritten.
String resource files are identified by the application default string (
.ads
) file extension.
TIP: This function is designed specifically for use in application internationalization, or other customized applications. Internationalization may be achieved by saving all language-specific messages in one file to be accessed using STRLOOKUP.
status = STRLOOKUP(Load='/usr/mydir/myapp/myapp.errors')
status = STRLOOKUP(Add='msg_NoSuchFile: No such file')
File OK
.
value = STRLOOKUP('msg_FileOK', Default='File OK')
status = STRLOOKUP(Save='/usr/mydir/myapp/myapp.new')