Dim P As Panel P.Initialize("DataPoint") P.Tag = Crsr.GetDouble("QcL_Dimension") If GoNoGo Then 'Log(P.Tag & " " & (P.Tag = -1)) If P.Tag = -1 Then P.top = MeanLine.top - Size * 1.1 P.Color = Colors.Black Else P.top = MeanLine.top + Size * 1.1 P.Color = Colors.Red End If .......
In the code above I am storing a datapoint in P.Tag. In some cases this is True/False rather than a dimension so it is storing 0 or -1.
In debug mode
P.Tag = -1
In Release Mode it Returns False.
When I change it to
If P.Tag = -1.0 Then
it works in both
Log(P.Tag) Prints -1 in debug and -1.0 in Release.
Breaking the code in debug and HOVERING over P.Tag DISPLAYS -1.0 even though it LOGS -1.
The bigger concern of course is -1 should equal -1.0 regardless.