Re: [Gambas-user] Gambas equivilent help

2009-10-28 Thread briansykes
I've been reading up on java trying to understand it but i just never could get that damn language, some things are similar enough that with a bit of reading i'm able to find the gambas equivilent but other things i cant figure out. Fabien Bodard-4 wrote: > > i think Benoit is better at this gam

Re: [Gambas-user] Gambas equivilent help

2009-10-28 Thread Fabien Bodard
i think Benoit is better at this game than me :/ 2009/10/26 briansykes : > > These functions are part of a chat server handshake and they only have it > available to me in java so i have to port it to gambas to use it. > > I'll post the big function so you can get an idea of what is going on. > >

Re: [Gambas-user] Gambas equivilent help

2009-10-25 Thread briansykes
These functions are part of a chat server handshake and they only have it available to me in java so i have to port it to gambas to use it. I'll post the big function so you can get an idea of what is going on. private void n(String s1) { boolean flag = false; String as[] = {

Re: [Gambas-user] Gambas equivilent help

2009-10-25 Thread Fabien Bodard
2009/10/25 briansykes : > > Sorry i hit the wrong link, but here it is again. sorry. > > private BitSet a(char ac[]) >    { >        int i1 = ac.length * 8; >        BitSet bitset = new BitSet(i1); >        for(int j1 = 0; j1 < i1; j1++) >        { >            int k1 = j1 & 7; >            int l1

Re: [Gambas-user] Gambas equivilent help

2009-10-25 Thread briansykes
Sorry i hit the wrong link, but here it is again. sorry. private BitSet a(char ac[]) { int i1 = ac.length * 8; BitSet bitset = new BitSet(i1); for(int j1 = 0; j1 < i1; j1++) { int k1 = j1 & 7; int l1 = j1 >> 3; if((ac[l1] & 0

Re: [Gambas-user] Gambas equivilent help

2009-10-25 Thread Fabien Bodard
Private Function a( BitSet as Byte[]) as Byte[] Dim BitSet1 as New Byte[64] Dim Flag as Boolean = false Dim i As Integer For i = 0 to 64-1 If Flag<>BitSet[i] Then BitSet1[i]=True Flag = BitSet[i] Next return BitSet1 2009/10/25 briansykes : > > I'm trying to convert some java co

Re: [Gambas-user] Gambas equivilent help

2009-10-25 Thread briansykes
I'm trying to convert some java code to Gambas and i cant seem to get it to work at all here is the code. private BitSet a(BitSet bitset) { BitSet bitset1 = new BitSet(64); boolean flag = false; for(int i1 = 0; i1 < 64; i1++) { if(flag != bitset.get

Re: [Gambas-user] Gambas equivilent help

2009-10-24 Thread Benoît Minisini
> Very simple question that i cant seem to answer on my own: What is the > gambas equivilent of the java BitSet class? is it a Byte[] array? i dont > know but thats about the only thing i could think of. > There is no equivalent of the Java BitSet class. You must implement it by your own, and

[Gambas-user] Gambas equivilent help

2009-10-24 Thread briansykes
Very simple question that i cant seem to answer on my own: What is the gambas equivilent of the java BitSet class? is it a Byte[] array? i dont know but thats about the only thing i could think of. -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26044750.