Показать сообщение отдельно
Старый 24.11.2012, 00:08   #1  
Kent is offline
Kent
Участник
 
46 / 10 (1) +
Регистрация: 24.01.2007
Query ranges OR condition
Hi,

The following code sample:

Query q = new Query();
QueryBuildDataSource qbds;
;
qbds = q.addDataSource(tablenum(Table1));

SysQuery::findOrCreateRange(qbds, fieldnum(Table1, Field1)).value(a);
SysQuery::findOrCreateRange(qbds, fieldnum(Table1, Field2)).value(b);

Both ranges for Field1 and Field2 works as AND expression.

Is it possible somehow handle those ranges as OR expression, between those fields?