03.02.2007, 13:30 | #2 |
Участник
|
Aleksey_M доработал и исправил тег [xpp]...[/xpp]
В панели инструментов добавлена иконка, которая вставляет этот тег. Пользуйтесь. X++: static void testSysQuery_CountLoops_rnr(Args _args) { Query q = new Query(); QueryRun qr; QueryBuildDataSource qbds; QueryBuildDataSource qbds2; LedgerTable lt; LedgerTrans ltrans; Integer loops; Integer Total; qbds = q.addDataSource(tablenum(LedgerTable)); qbds.addSortField(fieldnum(LedgerTable,AccountPlType)); qbds.orderMode(0); info(q.dataSourceNo(1).toString()); qr = new QueryRun(q); info(strfmt('Total select: %1',SysQuery::countTotal(qr))); info(strfmt('Loops: %1',SysQuery::countLoops(qr))); } X++: static void testSysQuery_CountLoops_rnr(Args _args) { //info(strfmt('Total "select": %1',/*SysQuery::*/countTotal(qr))); info(strfmt('Total "select": %1',SysQuery::countTotal(qr))); /*info(strfmt("Loops':' %1",SysQuery:://countLoops(qr)));*/ info(strfmt("Loops':' %1",SysQuery::countLoops(qr))); } |
|