Retrieves a message from the ODA message file.
Syntax
public String getMsg(int msgNum, int msgType); public String getMsg(int msgNum, int msgType, msgParameters); public String getMsg(int msgNum, int msgType, Vector paramArray);
Parameters
ODKConstant.XRD_FATAL ODKConstant.XRD_ERROR ODKConstant.XRD_URGENTWARNING ODKConstant.XRD_WARNING ODKConstant.XRD_INFO
Exceptions
Return values
A String that contains the text associated with the specified message number. If message parameters have been provided, these values have been inserted as appropriate into the message. If msgNum is not valid, the method returns null.
Notes
The getMsg() method retrieves a message from a message file. It identifies the name of this file from the MessageFile startup property, which the ODK automatically includes with the ODA startup properties. The getMsg() method provides the following forms:
For information on ODA message files, see Message files. For information on message parameters, see Using parameter values.
See also