2010-04-14 08:30 UTC
Hi to all
That's my first post in this forum - nice to see some known names...8-)
Ok, in short
ODCL is new for me, so I do my first steps with this product. Most of the
features are easy to handle, but then I got an error in a ListView and
I don't know what's the reason for:
(defun WLK_0010 (Cus Cul / CusLst DefCus FrmNme HdrLst SelMde SelRec)
(setq FrmNme "frmSelPro"
CusLst (mapcar '(lambda (l) (WLK_0014 (cdr l))) Cul)
DefCus (cond ((LkListPos CusLst Cus)) (0))
HdrLst (list
(list (LkGetPrompt 0 137 0) 0 10)
(list (LkGetPrompt 0 138 0) 0 10)
(list (LkGetPrompt 0 139 0) 0 10)
(list (LkGetPrompt 0 140 0) 0 10)
)
SelMde (atoi (LkGetAssoc "Lk:Mde" (cdr (nth DefCus Cul))))
SelRec (atoi (LkGetAssoc "Lk:Rec" (cdr (nth DefCus Cul))))
)
(dcl_Form_Show Lk:Nme FrmNme)
(dcl_Control_SetTitleBarText Lk:Nme FrmNme (strcat Lk:Nme (LkGetPrompt 1 100 0)))
(dcl_Control_SetCaption Lk:Nme FrmNme "lblAppNme" (strcat Lk:Nme " " Lk:Ver))
(dcl_Control_SetCaption Lk:Nme FrmNme "lblCpyRgt" Lk:Cpr)
(dcl_Control_SetValue Lk:Nme FrmNme "optUseFld" SelMde)
(dcl_Control_SetValue Lk:Nme FrmNme "optUseFil" (boole 6 1 SelMde))
(dcl_Control_SetValue Lk:Nme FrmNme "chkRecFld" SelRec)
(dcl_Control_SetEnabled Lk:Nme FrmNme "chkRecFld" (= SelMde 1))
(dcl_ListView_AddColumns Lk:Nme FrmNme "lstSelPro" HdrLst) ;<-- Error line
(dcl_ListView_FillList Lk:Nme FrmNme "lstSelPro" CusLst)
(dcl_ListView_SetCurSel Lk:Nme FrmNme "lstSelPro" DefCus)
DefCus
)
Does somebody know what's the reason for this message?
The rest of the code works without any problems...
Thx, Jürg
That's my first post in this forum - nice to see some known names...8-)
Ok, in short
ODCL is new for me, so I do my first steps with this product. Most of the
features are easy to handle, but then I got an error in a ListView and
I don't know what's the reason for:
(defun WLK_0010 (Cus Cul / CusLst DefCus FrmNme HdrLst SelMde SelRec)
(setq FrmNme "frmSelPro"
CusLst (mapcar '(lambda (l) (WLK_0014 (cdr l))) Cul)
DefCus (cond ((LkListPos CusLst Cus)) (0))
HdrLst (list
(list (LkGetPrompt 0 137 0) 0 10)
(list (LkGetPrompt 0 138 0) 0 10)
(list (LkGetPrompt 0 139 0) 0 10)
(list (LkGetPrompt 0 140 0) 0 10)
)
SelMde (atoi (LkGetAssoc "Lk:Mde" (cdr (nth DefCus Cul))))
SelRec (atoi (LkGetAssoc "Lk:Rec" (cdr (nth DefCus Cul))))
)
(dcl_Form_Show Lk:Nme FrmNme)
(dcl_Control_SetTitleBarText Lk:Nme FrmNme (strcat Lk:Nme (LkGetPrompt 1 100 0)))
(dcl_Control_SetCaption Lk:Nme FrmNme "lblAppNme" (strcat Lk:Nme " " Lk:Ver))
(dcl_Control_SetCaption Lk:Nme FrmNme "lblCpyRgt" Lk:Cpr)
(dcl_Control_SetValue Lk:Nme FrmNme "optUseFld" SelMde)
(dcl_Control_SetValue Lk:Nme FrmNme "optUseFil" (boole 6 1 SelMde))
(dcl_Control_SetValue Lk:Nme FrmNme "chkRecFld" SelRec)
(dcl_Control_SetEnabled Lk:Nme FrmNme "chkRecFld" (= SelMde 1))
(dcl_ListView_AddColumns Lk:Nme FrmNme "lstSelPro" HdrLst) ;<-- Error line
(dcl_ListView_FillList Lk:Nme FrmNme "lstSelPro" CusLst)
(dcl_ListView_SetCurSel Lk:Nme FrmNme "lstSelPro" DefCus)
DefCus
)
Does somebody know what's the reason for this message?
The rest of the code works without any problems...
Thx, Jürg

