2011-05-11 09:33 UTC
Hello,
I've programmed with DCL and now I'm trying to migrate to OpenDCL becauseit is more complete but I have some problems on the trials.
I try to fill a listbox with a list but does not write anything when display the dialog (only has a listbox)
I have read the forum Mesg but I'm lost. What am I doing wrong?
I tried addlist and setlist but no success
I'm sorry because English is not my native language
Thank you for teaching
(defun C:ODCL0200 ( / )
(getTowN)
(command "_OPENDCL")
(dcl_Project_Load "D:/design/lisp_cim/0300.odcl" T)
(dcl_Form_Show 0300_ODCL02 )
(princ)
)
(defun c:odcl_0200_OnInicialize (/)
; (dcl_ListBox_Clear TowListN)
; (dcl_Control_SetList 0300_ODCL02_ListBox1 aux01)
(dcl_ListBox_AddList 0300_ODCL02_ListBox1 Aux01)
)
(defun GetTowN (/ aux01 )
(setq k 12)
(setq n 1)
(setq aux01 (list nil))
(Repeat k
(setq aux01 (append aux01 (list (strcat "Item N." (Itoa n)))))
(setq n (1+ n))
) )
I've programmed with DCL and now I'm trying to migrate to OpenDCL becauseit is more complete but I have some problems on the trials.
I try to fill a listbox with a list but does not write anything when display the dialog (only has a listbox)
I have read the forum Mesg but I'm lost. What am I doing wrong?
I tried addlist and setlist but no success
I'm sorry because English is not my native language
Thank you for teaching
(defun C:ODCL0200 ( / )
(getTowN)
(command "_OPENDCL")
(dcl_Project_Load "D:/design/lisp_cim/0300.odcl" T)
(dcl_Form_Show 0300_ODCL02 )
(princ)
)
(defun c:odcl_0200_OnInicialize (/)
; (dcl_ListBox_Clear TowListN)
; (dcl_Control_SetList 0300_ODCL02_ListBox1 aux01)
(dcl_ListBox_AddList 0300_ODCL02_ListBox1 Aux01)
)
(defun GetTowN (/ aux01 )
(setq k 12)
(setq n 1)
(setq aux01 (list nil))
(Repeat k
(setq aux01 (append aux01 (list (strcat "Item N." (Itoa n)))))
(setq n (1+ n))
) )