Problem compiling using (Array As Byte)

lscott

Member
Licensed User
Longtime User
Still a newbe but enjoying the learning curve.

I have attached a scale down version TESTCRC.zip of my program. I am trying to build an array of bytes "PACKET" send it to a sub crc.GetCRC and return a value 2 bytes (long).
It is my intent with GetCRC to send the packet array previously built, the array's length and a seed number "1" for the vairable s.

I receive the following error.

Compiling code. 0.05
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 49
Calc_CRC = crc.GetCRC(Packet,Packet.Length,1) 'this should return with the value of s
javac 1.6.0_26
src\fti\crc_test\commands.java:82: cannot find symbol
symbol : method NumberToString(byte[])
location: class anywheresoftware.b4a.BA
_calc_crc = mostCurrent._crc._getcrc(_ba,BA.NumberToString(_packet),_packet.length,(long)(1));Debug.locals.put("Calc_CRC", _calc_crc);
^
1 error

All help will be greatfully accepted.
Thanks in advance.
ScottH
 

Attachments

  • TestCRC.zip
    9.1 KB · Views: 156

lscott

Member
Licensed User
Longtime User
Thanks Erel.

I found it late last night and made the change to the sub GetCRC(str() as byte,......
Now to change each byte(hex) to a int(decimal) then work with them.

ScottH
:sign0089:
 
Upvote 0
Top