Consultor Eletrônico



Kbase P170986: DOC: Documentation bug in sample code of the PROMSGS statement
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/08/2010
Status: Unverified

SYMPTOM(s):

DOC: Documentation bug in sample code of the PROMSGS statement

The sample procedure code, r-swmsgs.p, of the PROMSGS statement contains a syntax error in both the OpenEdge Development: ABL Reference and the 'Online Keyword Help' documentation.

Running the sample code as is generates the error: "Cannot find prolang/promsgs.lng" where lng is the three letter symbol of the language input by the user.

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.2B

CAUSE:

Bug# OE00199680

CAUSE:

The offending line of code, msgfile = IF newlang = "English" THEN "promsgs" ELSE "prolang/promsgs." + LC(SUBSTRING(newlang, 1, 3)). generates the error because the PROMSGS files are not located in the dlc/prolang directory.

FIX:

None at this time. A workaround is to change the offending statement:
msgfile = IF newlang = "English" THEN "promsgs" ELSE "prolang/promsgs." + LC(SUBSTRING(newlang, 1, 3)).
With the correct statement::
msgfile = IF newlang = "English" THEN "promsgs" ELSE "prolang/" + LC(SUBSTRING(newlang, 1, 3)) + "/promsgs." + LC(SUBSTRING(newlang, 1, 3)).