I notice this code in the Intro to Programming with Xojo PDF:
If PotatoRadio.Value Then
theOrder = theOrder + PotatoRadio.Caption
theOrder = theOrder + EndOfLine
End If
Is there a good reason not to simply code it this way in Xojo:
If PotatoRadio.Value Then
theOrder = theOrder + PotatoRadio.Caption + EndOfLine
End If
I know the above works in the practice example offered, but are there situations where one should not append the second line of code with the EndOfLine reference? Coming from Filemaker development, I’ve always done this the second way.
its more personal preference than anything really - there’s a VERY tiny performance hit to the first but so small I doubt you’d be able to measure it unless you do this billions of times in a loop or something