P Paolo SD Member Licensed User Longtime User Dec 19, 2015 #1 Hello, I have written a code in which I have to check if it is 0 the result of a query Code: Copy Dim cur As Map = data.Get(0) if (cur.Get("cnt")==0) Then ..... when I use Debug mode the IF code is executed. When I compile in Release mode the if don't work. I must write the code in this way: Code: Copy Dim cur As Map = data.Get(0) Dim cnt As Int = cur.Get("cnt") If (cnt==0) Then ..... I realized the error of doing print messages when running.
Hello, I have written a code in which I have to check if it is 0 the result of a query Code: Copy Dim cur As Map = data.Get(0) if (cur.Get("cnt")==0) Then ..... when I use Debug mode the IF code is executed. When I compile in Release mode the if don't work. I must write the code in this way: Code: Copy Dim cur As Map = data.Get(0) Dim cnt As Int = cur.Get("cnt") If (cnt==0) Then ..... I realized the error of doing print messages when running.
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2015 #2 Do you get any error in release mode (assuming that you can see the logs)?
P Paolo SD Member Licensed User Longtime User Dec 20, 2015 #3 Erel said: Do you get any error in release mode (assuming that you can see the logs)? Click to expand... No. No error is in debug mode that mode release. Simply comparing to fail. I tried to print the contents of cur.Get ("CNT") and is 0, but comparing it with the number 0 as not equal. This is why I thought of a casting error. The strange thing is that in debug mode works.
Erel said: Do you get any error in release mode (assuming that you can see the logs)? Click to expand... No. No error is in debug mode that mode release. Simply comparing to fail. I tried to print the contents of cur.Get ("CNT") and is 0, but comparing it with the number 0 as not equal. This is why I thought of a casting error. The strange thing is that in debug mode works.