read expression foreach table open table call selectlib with table and expression close table end foreach