TApxProtocol.StatusMsg

TApxProtocol

function StatusMsg(const Status : Word) : string;

Returns an English string for a protocol status code.

This routine is intended primarily for use in protocol status routines. It returns a status string from the string table resource linked into your binary. The string ID numbers correspond to the values of the psXxx protocol status constants. If the string table doesn't contain a string resource with the requested ID, an empty string is returned.

The returned string is never longer than MaxMessageLen (80) characters.

See also: ProtocolStatus