returning results

Oct 9, 2008 at 1:50 PM
is it possible?
Coordinator
Oct 13, 2008 at 10:06 AM
yes.

just end your script with "return [int];"

The Default - Value is 0.
Oct 24, 2008 at 8:29 AM
Edited Oct 24, 2008 at 8:30 AM
Hi

could u please provide a small example of such a script.
and how about returning a string or returning any object is that possible?
I m also interested at passing parameters to the script . Could u demo that also please

thnks a lot
Oct 30, 2008 at 11:07 AM
no one?
Coordinator
Nov 1, 2008 at 11:49 AM
It's very easy. Put the following code in a .csr - file:

try
{
        for(int i=0;i<10;i++)
        Console.WriteLine(i);
       
         throw new Exception("SampleError");
}
catch(Exception ex)
{
   Console.WriteLine(ex.Message);
   return 1;
}

return 0;