Skip links

Query & Dialog Örnekleri 2


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
Query & Dialog Örnekleri 2

Merhaba
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