Android Question Compile error

ggpanta

Member
Licensed User
Longtime User
B4X:
Dim hash() As Byte
Dim offset As Int

offset = hash(hash.Length -1) & 0xf;

B4X:
Error:

B4A version: 5.80
Parsing code.    (0.00s)
Compiling code.    (0.02s)
Compiling layouts code.    (0.00s)
Generating R file.    (0.03s)
Compiling generated Java code.    Error
B4A line: 67
offset = hash(hash.Length -1) & 0xf;
javac 1.7.0_60
src\b4a\example\main.java:450: error: ')' expected
_offset = (int)(Double.parseDouble(BA.NumberToString(_hash[(int) (_hash.length-1)])+BA.NumberToString(0xf;)));
                                                                                                         ^
1 error

Any ideas ?
 
Top