TheSwamp
Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: mkweaver on December 08, 2011, 06:58:37 PM
-
This works:
(dcl_Control_SetVisible CommandList_cmdl_main_cbFilter nil)
But this doesn't?
(foreach ctl '(CommandList_cmdl_main_cbFilter
CommandList_cmdl_main_lblFilter
CommandList_cmdl_main_cbRecent
CommandList_cmdl_main_lblRecent
)
(dcl_Control_SetVisible ctl nil)
)
What is wrong with the foreach?
-
Just a guess, but try:
(foreach ctl '(CommandList_cmdl_main_cbFilter
CommandList_cmdl_main_lblFilter
CommandList_cmdl_main_cbRecent
CommandList_cmdl_main_lblRecent
)
(dcl_Control_SetVisible (eval ctl) nil)
)
-
You can't explicitly quote a list of ODCL control names. Use "list" instead.
(foreach ctl (list CommandList_cmdl_main_cbFilter
CommandList_cmdl_main_lblFilter
CommandList_cmdl_main_cbRecent
CommandList_cmdl_main_lblRecent
)
(dcl_Control_SetVisible ctl nil)
)
Kind Regards