static void example(Args _args) { SysQueryRun queryRun = new SysQueryRun(querystr(KTL_SalesData)); InventTable inventTable; ; if(queryRun.prompt()) { while (queryRun.next()) { inventTable = queryRun.get(tablenum(InventTable)); if(queryRun.changed(tableNum(InventTable))) { info(strfmt("%1",inventTable.recid)); } } } }