(command "OPENDCL")
(defun c:test ()
(dcl_project_load "FirstExample" t)
(dcl_form_show firstexample_form1)
(princ)
)
(defun c:firstexample/form1/textbutton2_onclicked (/)
(dcl_form_close firstexample_form1)
)
(defun c:firstexample_form1_oninitialize (/)
(foreach x '("layer1" "layer2" "layer3")
(dcl_listbox_addstring firstexample_form1_listbox1 x)
)
)
I have it declared local in c:test()
It will not pollute or be polluted by a variable of the same name in global scope.