QRun = element.args().parmObject(); qr = new QueryRun(QRun.Query()); While (qr.next()) { ct = qr.get(tablenum(custtable)); }