PDA

View Full Version : Problem with (nth n lst)



csgohjmj
2004-06-23, 11:11 AM
Hi;
I am at my wits end as trying to figure out what went wrong in my lsp prog. which is attached together.

The problem is when I use (nth L vlist1newlist1) to get the individual item of the list but an error occurred, but I could not figure out my mistake. And I sincerely hope you guys could help me out on this. The error is at the end of my prog.

Your help is greatly appreciated.

Thanks.

csgoh

whdjr
2004-06-23, 01:20 PM
csgoh,

It appears it your defun statement for function table1-for-xyz you set nth as a local variable. Thats a nono because you redefined the function definition for nth.

csgohjmj
2004-06-23, 02:38 PM
Many thanks - problem solved.

csgoh