Kbase P15945: How to get the value of the dynamic select box viewed as com
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/11/2003 |
|
Status: Unverified
GOAL:
How to retrieve the value of a Smart Select viewed as a combo-box
FACT(s) (Environment):
Progress 9.1C
FIX:
Sample code:
DEFINE VARIABLE hFillIn AS HANDLE NO-UNDO.
&SCOPED-DEFINE xpSelectionHandle
{get SelectionHandle hFillIn h_dynselect}.
&UNDEFINE xpSelectionHandle
/* use list item pairs to retrieve the value */
MESSAGE ENTRY(LOOKUP(hFillIn:SCREEN-VALUE, hFillIn:LIST-ITEM-PAIRS,
CHR(1)) - 1, hFillIn:LIST-ITEM-PAIRS, CHR(1)).