Bug? Bug in Debug

Star-Dust

Expert
Licensed User
Longtime User
I used Erel's B4XEval Class and made a small change to fit my FlexGrid library.
But when I execute the code in DEBUG it marks me a nonexistent error: Variable not declared, in reality it is not so.

Now I've created an example code to reproduce the problem but it marks another nonexistent error: 'Current declaration does not match previous one.'

I attach the code and the error message at the bottom
upload_2018-11-11_13-15-14.png


This error does not occur in RELEASE (and DEBUG LEGACY) mode. BUT compile perfectly
 
Last edited:
It is because there are loops that use Row and Col as indexes that aren't declared first.

When they are then declared as Int, it is considered to be an error.

Add the line :
Code: Copy
Dim Row,Col As Int
as line 85 in EVal module
 
This is the incriminated Sub. In my opinion it is a BUGS, because compiled works correctly as in DEBUG LEGACY.

It should always mark it error or never.

P.S.: The code is from Erel, so if you wrote it the code will be right and the debugging is wrong
 
Last edited:
Legacy has been deprecated.

But Release is not deprecated :p and compiles perfectly, the code is correct.
 
Thnks
 
Back
Top