Working on web app conversion from Xojo2018, running Analyze on folowing code:
Dim DataMode As Boolean
Select Case mFaMode
Case "KEEP"
DataMode = false
Case "DELETE"
DataMode = true
End Select
where mFaMode is class property of type FieldString.
I see yellow warning signs on both “Case” lines, the verbiage of the warning is:
“Warning: Converting from Integer to Double causes a possible loss of precision, which can lead to unexpected results.”
Can someone explain to me why am I getting this warning and what it really means?
Thanks
Another question, when you say “conversion” did you open the Xojo2018 project with Xojo2023 and you are changing/fixing things or you created a new project with Xojo2023 and you are recreating your web app?
Ian,
Sorry, I have just realized I may have opened can of worms. The StringField is a custom structure inherited from the base custom structure Field.
The Field structure has no Super but it has interface DataItem and ListItem (another custom structures). StringField has its own methods and properties. I think the ball is now in my court, I need to see what is going on there then. Thanks anyway.