Skip links

Bir Query Örneği


Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118
Bir Query Örneği

Merhaba
Emre arkadaşımın göndermiş olduğu örnek joblar içinden query ile alakalı olan bir tanesi paylaşmak istedim.

static void query2(Args _args)
{
CustTable   cust;
Query                   q = new Query();
QueryRun                qr;
QueryBuildDataSource    qbdsCustTable;
QueryBuildRange         qbrCurrency;
CurrencyCode            currency;
;
currency = “USD”;
warning(“select ile”);
while select cust
where cust.Currency == currency
{
info(strFmt(“%1”, cust.Name));
}
//————————————–
warning(“Query ile”);
qbdsCustTable = q.addDataSource(tableNum(CustTable));
qbrCurrency = qbdsCustTable.addRange(fieldNum(CustTable, Currency));
qbrCurrency.value(sysQuery::value(currency));
qr = new QueryRun(q);
if(qr.prompt())
{
while(qr.next())
{
cust = qr.get(tableNum(CustTable));
info(strFmt(“%1”, cust.Name));
}
}
}

Join the Discussion