iOS Question building byte arrays

borofan

Member
Licensed User
Longtime User
I am trying to replicate a process from java, however I don't seem to be able to build a byte array in B4i.
Has anybody achieved this?

Java code:

int sendsize=5;
byte[] sendbyte = new byte[sendsize];
sendbyte[0]='F';
sendbyte[1]='T';
sendbyte[2]=0;
sendbyte[3]=0;
sendbyte[4]=cmdid;

Thanks
 
Top