LanguageAndNationMSG()

Language and Nation MSG()

Returns international strings messages.

Syntax

      Language and Nation MSG( <nMsg> ) --> <cMessage>

Arguments

<nMsg> is the message number you want to get.

Returns

<cMessage> If <nMsg> is a valid message selector, returns the message. If <nMsg> is nil returns “Invalid Argument”, and if <nMsg> is any other type it returns an empty string.

Description

Language and Nation MSG() returns international message descriptions.

Examples

      // Displays "Sure Y/N: "  and waits until user enters Y
      // Y/N is the string for NATIONMSG( 12 ) with default natmsg module.
      DO WHILE ! ISAFFIRM( cYesNo )
         ACCEPT "Sure " + NATIONMSG( 12 ) + ": " TO cYesNo
      ENDDO

Compliance

Clipper

Files

Library is rtl

Seealso

ISAFFIRM(), ISNEGATIVE()

IsAffirm()

ISAFFIRM()

Checks if passed char is an affirmation char

Syntax

      ISAFFIRM( <cChar> ) --> <lTrueOrFalse>

Arguments

<cChar> is a char or string of chars

Returns

<lTrueOrFalse> True if passed char is an affirmation char, otherwise false

Description

This function is used to check if a user’s input is true or not according to the msgxxx module used.

Examples

      // Wait until user enters Y
      DO WHILE ! ISAFFIRM( cYesNo )
         ACCEPT "Sure: " TO cYesNo
      ENDDO

Compliance

Clipper

Files

Library is rtl

Seealso

ISNEGATIVE(), NATIONMSG()