That doesn't trap any errors that might occur & you are using getvar twice, not sure what the time penalty is for that.
What lisp statement generated the ERROR?
There is no error when you use getvar with and invalid string, it just returns nil, so if it returns nil, skip it, and on to the next string. The error was me this morning hitting escape, so that I can do my work.
Question Tim -- <I'm trying to understand the cost / benefit ratio> What's the consequence if you have most, but not necessarily all of the system variables? Is it just a curiosity thing or is some absolute need fueling this?
Just to know. I like knowing what I'm using, and I know you can get list of system variables off the net, but I was wondering how one would get a full list. I think I have been to the hyperpics site for a list. Thought it would be a fun thing to try.
Seems a little harder than I thought though, but still fun.