static void Job6(Args _args)
{
str s;
try
{
s=runbuf("int myfunc(int i, str s) { print s; return i; }", 5, 126);
print s;
pause;
}
catch
{
info ("never reach this spot");
}
}If I omit an argument, or add an extra argument, arg3, to the runbuf(strCodeBlock,arg1,arg2,arg3,...), I get a compile error, and further progress in runtime stops. The exception cannot be caught by the exception handler, since the compilation stopped.
You must be sure, the codeblock has the arguments; which corresponds to the arguments given.
:-)
From: "agus.riyadi" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: [development-axapta] try catch with runbuf
Date: Mon, 15 Dec 2003 10:49:30 GMT
Hi all,
Are there any way of catching error of runbuf method ?
I have a string containing code of a function that has two parameters.
I tried to call runbuf with those string as the first parameter and another parameter for the function. Of course it displayed error message since it needs two parameters.
But I wonder why can't I catch its error ? I have tried all possibilities of
the exception options, but none was able to catch the error.
Anybody have been dealt with this problem?
I will be glad for any clues, thanks :o)
_________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
Yahoo! Groups Sponsor ADVERTISEMENT
click here
_____
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.

