So it didn't like the scope of the previously declared var and flagged the next call instead of complaining about the /declare? I'm thinking global, outter, inner not global, outter, local.
As far as declaring and assigning vars, I just ripped up some macro I had started so I could make a shell...