Consultor Eletrônico



Kbase P11678: getNewRecord results in errors 87 and 5729
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/18/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

getNewRecord results in errors 87 and 5729 when used with IF statement:

IF DYNAMIC-FUNCTION('getNewRecord':U) THEN

** Input value: Add should be yes
o. (87)

Incompatible datatypes found during runtime conversion. (5729)

CAUSE:

getNewRecord returns a character variable with a value of "Add", "Copy", or "No". You cannot test a character variable for a logical value (TRUE/FALSE) in this way.

FIX:

Replace the IF statement with something like:

IF DYNAMIC-FUNCTION('getNewRecord':U) = "Add" THEN