FUNCTIONS CORE

NationMsg()

Return a message of the national language

Syntax

Signature
NationMsg( nMessage ) --> cMessage

Arguments

nMessage

The number of the message, from 1 to 13.

Return value

The message, "" for another number. Without the argument: "Invalid argument".

Description

The messages are the texts of the classic xBase reports, lists and input fields:

NumberMessage
1Database Files # Records Last Update Size
2Do you want more samples?
3Page No.
4 Subtotal
5 Subsubtotal
6 Total
7Ins
8three spaces, the place of "Ins"
9Invalid date
10Range:
11" - "
12Y/N
13INVALID EXPRESSION

Notes

xDev has the English messages. IsAffirm() and IsNegative() use message 12.

Example

NationMsg.prg
PROCEDURE Main()

   Check( 'NationMsg( 12 )                  ', NationMsg( 12 ), "Y/N" )
   Check( 'NationMsg( 9 )                   ', NationMsg( 9 ), "Invalid date" )
   Check( 'NationMsg( 14 )                  ', NationMsg( 14 ), "" )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

NationMsg( 12 )                  OK
NationMsg( 9 )                   OK
NationMsg( 14 )                  OK

See also