I tried your proposal to use runbuf().
It did not work.
I think it is not possible to send select statements to runbuf().
-----Urspr�ngliche Nachricht-----
Von: onnobid [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 07. Oktober 2004 10:19
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Re: Select Construct
Hi,
maybe you would like to do something like this if you need dynamic SELECTs created at runtime. Of course you can build queries for that purpose but this way you can deal with statements stored in variables.
By the way runbuf() enables you to execute any x++ source generated (as single method) dynamically at runtime ;-)
static void Job22(Args _args)
{
str CadAux;
str CadAux2;
str CadAux3;
str CadAuxExec = "InventSum CadAuxExec() {InventSum Inventsum; %1; return InventSum;}";
InventSum InventSum;
;
CadAux = "select InventSum where";
CadAux2 = " InventSum.ItemId=='101002'";
CadAux3 = " && InventSum.RecId==452";
//Execute SQL; // CadAux+ CadAux2+CadAux3
InventSum = runbuf(strfmt(CadAuxExec, CadAux + CadAux2 + CadAux3));
box::info(InventSum.xml());
pause;
}
Regards,
Onno
------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

