0.9b (c) 1995 Peter Childs
Function: SysGetMessage
Syntax: msg = SysGetMessage(num, [file] [str1],...[str9])
msg The message associated with the number given.
num The message number.
file The message file to be searched. The default message file is OSO001.MSG. Message files will be searched for in the system root directory ( C:\), the current directory, and along the DPATH.
str1,...str9 Insertion text variables. If the message contains insertion fields designated by %x, in the range %1 to %9, then the optional parameters str1 through str9 may be used to designate the replacement strings.
Purpose: OS/2 applications commonly use message files to provide National Language Support (NLS). Message files contain text strings which any application can reference by their associated number.
Note: Use the MKMSGF utility contained in the OS/2 Programmer's Toolkit to create message files. MKMSGF is documented in the Building Programs book included with the toolkit.
/*** Sample code segment using SysGetMessage and insertion text vars ***/ msg = SysGetMessage(34, , 'A:', 'diskette labeled "Disk 2"', 'SER0002') say msg /** Output **/ The wrong diskette is in the drive. Insert diskette labeled "Disk 2" (Volume Serial Number: SER0002) into drive A:.
Inf-HTML End Run - Successful