Consultor Eletrônico



Kbase P155461: NUM-ENTRIES accepts a buffer-field BUFFER-VALUE of a non-CHARACTER type as a parameter
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/5/2009
Status: Unverified

SYMPTOM(s):

NUM-ENTRIES accepts a buffer-field BUFFER-VALUE of a non-CHARACTER type as a parameter

In Progress 9, NUM-ENTRIES(<buffer-field handle>:BUFFER-VALUE) returns 1 when the value is not a CHARACTER.

In OpenEdge 10, NUM-ENTRIES(<buffer-field handle>:BUFFER-VALUE) returns 0 when the value is not a CHARACTER.

FACT(s) (Environment):

Passing an non-character parameter to NUM-ENTRIES should generate error 223 (** Incompatible data types in expression or assignment) at compile time.
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

CAUSE:

Bug# OE0193022

FIX:

None at this time. Unexpected behavior can be avoided by applying the STRING function to non-CHARACTER values before passing them to NUM-ENTRIES() to convert them to CHARACTER.