Consultor Eletrônico



Kbase P18364: Unknown value character "?" is being evaluated as unknown. I
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/02/2004
Status: Unverified

FACT(s) (Environment):

Progress 9.1x

SYMPTOM(s):

Unknown value character "?" is being evaluated as unknown. In other cases it is evaluated as a string literal "?".

CAUSE:

The question mark is a special character that represents the unknown value. Progress treats a quoted question mark ("?") in a procedure or an input field as a question mark character. It treats an unquoted question mark (?) in a procedure or an input field as an unknown value. The question mark (?) character in the first position of a field always equals an unknown value.

FIX:

Test for the unknown value and assign the variable to the literal value.

Example Code Snippet:

ASSIGN Variable.
IF Variable = ? THEN
DO:
ASSIGN Variable = "?".
END.