procedure CloseTables( pcTable1, pcTable2... pcTableN ) >local i, lcStr >for i = 1 to pcount() > lcStr = "pcTable" + alltrim( str( i ) ) > select &lcStr > use >endfor >returnNow there's a cool idea. How do I set it up when I don't know how many paramaters I'll be sending it? I'm guessing that "pcTable2... pcTableN" is just shorthand and not what I actually should use.