I am defining a list and then trying to reference it by building it's name using STRCAT. STRCAT returns "lst-id-1" which obviously is not the same as the LIST name lst-id-1.
Depending on the Current Tab the user is on the list will be different (they are all predefined in my full body of code.
(defun C:VPLAY
(setq lst-ID-1 '("A-BASE-CLNG"
"A-BASE-CLNG-MAINS"
"A-BASE-DIMS"
"A-BASE-EQPM"
)
)
(foreach layr (strcat "lst-" (getvar "CTab"));;; <<============== PROBLEM (if (tblsearch "Layer" layr) (command "VPlayer" "F" layr "" "") nil ) ;_ end of if ) ;_ end of foreach ) ;_end of defun
How can I overcome this problem?
Depending on the Current Tab the user is on the list will be different (they are all predefined in my full body of code.
(defun C:VPLAY
(setq lst-ID-1 '("A-BASE-CLNG"
"A-BASE-CLNG-MAINS"
"A-BASE-DIMS"
"A-BASE-EQPM"
)
)
(foreach layr (strcat "lst-" (getvar "CTab"));;; <<============== PROBLEM (if (tblsearch "Layer" layr) (command "VPlayer" "F" layr "" "") nil ) ;_ end of if ) ;_ end of foreach ) ;_end of defun
How can I overcome this problem?