can anyone tell me why i cannot populat a combo-box with the below code
DEFINE VARIABLE i AS INTEGER.
DEFINE VARIABLE itmcode AS CHARACTER FORMAT "X(26)" LABEL "Item-code" VIEW-AS COMBO-BOX.
FORM
itmcode
WITH FRAME main-frame SIDE-LABELS.
ON ANY-PRINTABLE OF itmcode
DO:
FOR EACH iix NO-LOCK:
ASSIGN itmcode:LIST-ITEMS IN FRAME main-frame = iix.item-code.
ENABLE itmcode WITH FRAME main-frame.
END.
DEFINE VARIABLE i AS INTEGER.
DEFINE VARIABLE itmcode AS CHARACTER FORMAT "X(26)" LABEL "Item-code" VIEW-AS COMBO-BOX.
FORM
itmcode
WITH FRAME main-frame SIDE-LABELS.
ON ANY-PRINTABLE OF itmcode
DO:
FOR EACH iix NO-LOCK:
ASSIGN itmcode:LIST-ITEMS IN FRAME main-frame = iix.item-code.
ENABLE itmcode WITH FRAME main-frame.
END.