Consultor Eletrônico



Kbase P26208: num-entries does not work when field contains ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/11/2003
Status: Unverified

SYMPTOM(s):

NUM-ENTRIES does not work when field contains ?

CAUSE:

According to Progress help:

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.

FIX:

Enter "?" in the input field or assign the screen-value of the field before using num-entries.

Example:

define variable x as character.
update x.

/* it treats ? as unknown */
message "num-entries is " num-entries(x) view-as alert-box.

/* if ? is not in between quotes, assign its screen-value */
X = X:SCREEN-VALUE.
message "num-entries is " num-entries(x) view-as alert-box.