Kbase P24093: How to check if a COMBO-BOX is a LIST-ITEMS or LIST-ITEM-PAI
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/28/2003 |
|
Status: Unverified
GOAL:
How to check if a COMBO-BOX is a LIST-ITEMS or LIST-ITEM-PAIRS?
FACT(s) (Environment):
Progress 9.1x
CAUSE:
Using ERROR-STATUS:NUM-MESSAGES since
ERROR-STATUS:ERROR returns FALSE no matter what.
FIX:
DEF VAR vc AS CHAR NO-UNDO.
vc = COMBO-BOX-1:LIST-ITEMS NO-ERROR.
IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
/* we have a LIST-ITEM-PAIRS */
/* usually we get 2 messages here */
/* For <widget id> specified with Label/Value pairs, use LIST-ITEM-PAIRS instead of LIST-ITEMS. (7454) */
/* and */
/* **<attribute> is not a <settable/queryable> attribute for <widget id>. (4052) */
END.
ELSE DO:
/* we have a LIST-ITEMS */
END.