Hi,
in the following code I am defining a byte array - afterwards I want to check if it has been set or not by checking if it is null ...
Dim data() As Byte
....
If data = Null Then ExitApplication
When I try to compile I get the following:
Compiling generated Java code. Error
B4A line: 92
If data = Null Then ExitApplication
javac 1.6.0_24
src\hawkstone\epod\actprocessdoc.java:323: incomparable types: byte[] and double
if (_data==(double)(BA.ObjectToNumber(anywheresoftware.b4a.keywords.Common.Null))) {
^
Obviously I cannot check the length as the variable value is actually null. Is there another / better way of checking if arrays has been assigned values ???
in the following code I am defining a byte array - afterwards I want to check if it has been set or not by checking if it is null ...
Dim data() As Byte
....
If data = Null Then ExitApplication
When I try to compile I get the following:
Compiling generated Java code. Error
B4A line: 92
If data = Null Then ExitApplication
javac 1.6.0_24
src\hawkstone\epod\actprocessdoc.java:323: incomparable types: byte[] and double
if (_data==(double)(BA.ObjectToNumber(anywheresoftware.b4a.keywords.Common.Null))) {
^
Obviously I cannot check the length as the variable value is actually null. Is there another / better way of checking if arrays has been assigned values ???