The original code works on 2013 4.1 on Windows 8.1. I put the code in a pushbutton.action event. Maybe try the following code to make sure that the event is firing:
[code]MsgBox(“Starting code”)
dim d as Double
d = 1/10 'd = 0.1
if d < 0.5 then
MsgBox(“d < 0.5”)
end[/code]
If you don’t see ‘Starting code’ when you run the program, then the code is not being executed.
Meanwhile I discovered that my code example doesn’t work on Windows 8.1. On Windows 7 it works as expected. Is anyone running Windows 8.1 Pro 64 Bit and can reproduce this?
[quote=64704:@Eugene Dakin]The original code works on 2013 4.1 on Windows 8.1. I put the code in a pushbutton.action event. Maybe try the following code to make sure that the event is firing:
[code]MsgBox(“Starting code”)
dim d as Double
d = 1/10 'd = 0.1
if d < 0.5 then
MsgBox(“d < 0.5”)
end[/code]
If you don’t see ‘Starting code’ when you run the program, then the code is not being executed. :)[/quote]
Hi Eugine
are you using Windows 8.1 64 Bit or 32 Bit?
…hmm, I really have no further idea. I think Rolf is using Win 8.1 with German locale settings? Same as me.
The code is correct, because it works on my Windows 7 machine. So what could be the problem?
Yes, the code was tested on two computers running Windows 8.1 64 bit with Xojo 2014 r4.1. Both computers provided the correct output. Both computers are set to English.
Of course I did. The problem seems to be my machine, but I have absolute no idea what it could be. The only thing I know is that I don’t have this problem with Windows 7, only with 8.1.
Beside Xojo I have NetBeans, QT Creator and Visual Studio Express 2012 on this machine, but thats on the Windows 7 one as well.
As work around I changed all my code were I’m working with double values (i.e. changed x = 0.5 in x = 5/10 etc.)