Dim a As String="1234" Dim b As Object="1234" If b = a Then Log("True") Else Log("False") End If
https://www.b4x.com/android/forum/threads/b4a-v9-90-has-been-released.119043/post-744586But I have many projects written & worked fine without taking care of object first !!
I don't want to re-write all previous codes of projects !!!
Yes, post says warning only raise, not non-equal values.
That is means no hope with new version to compile my old projects containing this comparison in object=string manner!Conditional comparison is done by casting the second item to the type of the first first, so to get a String comparison it should be if a = b then. In general when using an Object type in a comparison then it should be on the right as what is probably intended is a comparison of the type of the other (first parameter). This can also be important if you are comparing numeric values and String types, to get a numeric comparison the numeric type needs to be on the left or you may get unexpected results as String values may have leading or trailing zeroes.
You are missing the point. All the IDE is doing new is warning you your code has the potential to fail, it is not doing anything differently that it always has. If it was working in prior versions properly it will continue to work properly in the new version. The order of comparison may not be significant if you are sure your object variable is of the same type you are comparing.That is means no hope with new version to compile my old projects containing this comparison in object=string manner!
So only solution is downgrade B4A to previous one! or revise all old projects code and change *impossible, I have large codes"
I hope this problem solved asap.