Actually Raul gave the same answer. It's exactly, what you need:

J.Do("b=: (2-2)+1 0 1 0 0 1");
J.Get("b", out someObject);

  someObject.GetType() // System.Int32[]



--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:

>    3!:0]0 1 1 0
> 1
>    3!:0](2-2)+0 1 1 0
> 4
> 
> 
> --- Kenny Coelho <[EMAIL PROTECTED]> wrote:
> 
> > Not exactly.  Let me see if I can clarify further:
> > 
> >  
> > 
> > Let's say that I have the following C# code:
> > 
> >  
> > 
> > JDLLServerClass J;
> > 
> > Object someObject;
> > 
> >  
> > 
> > J.Do("b=: 1 0 1 0 0 1");
> > 
> > J.Get("b", out someObject);
> > 
> >  
> > 
> > Now if I look at the "someObject" object, I will notice that, in terms of
> > C#, I have an array of Booleans (i.e. object of type bool[]).  So visually,
> > the array looks something like this:
> > 
> >  
> > 
> > {true, false, true, false, false, true}
> > 
> >  
> > 
> > Unfortunately, C# (unlike C and C++) does not equate true =1 and false =0.
> > So, I would like to know if there is any way to have the J.DLL output an
> > array of integers (i.e. object of type int[]) instead - in this case
> > {1,0,1,0,0,1}?
> > 
> >  
> > 
> > Thanks!
> > 
> >  
> > 
> > Kenny C.
> > 
> >  
> > 
> >             
> > 
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to