On Sun, Jul 11, 2010 at 7:25 PM, Mark Needham <[email protected]> wrote:
> result =: 2 + 2
>
> square =: *:
>
> centigrade =: verb define
> t1 =. y - 32
> t2 =. t1 * 5
> t3 =. t2 % 9
> )
>
> Then I've got this code:
>
>            var cSharpSession = new CSharpSession();
>
>  cSharpSession.Load("C:/Playbox/JForTheWin/WillJWork/bin/Debug/script.ijs");
>            cSharpSession.Eval("mark =: centigrade 5");
>            var csharpResult = cSharpSession.Variable("mark");
>            Console.Write(csharpResult);
>
> where CSharpSession is the one from the other tutorial.
>
> It blows up on trying to load the script with a 'value error' but it seems
> to me that the definition is correct? Is there something else I need to do?

Which line gets the value error?

Have you tried executing any of these lines in the debugger?

What does the code for .Load() look like?

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to