Hi,
I'm wondering
why the second part isn't ending the loop ?Code:Dim ok as Boolean = %FALSE
Do
ok = %TRUE
loop until ok = %TRUE
msgbox 0, "Passed"
ok = %FALSE
Do
ok = %TRUE
loop until ok
MsgBox 0,"done"
Printable View
Hi,
I'm wondering
why the second part isn't ending the loop ?Code:Dim ok as Boolean = %FALSE
Do
ok = %TRUE
loop until ok = %TRUE
msgbox 0, "Passed"
ok = %FALSE
Do
ok = %TRUE
loop until ok
MsgBox 0,"done"
Dangerous code, i run it 3 times and find 3 thinbasic.exe in memory
i have used this BAT file to kill the exe's in windows xp
but the code is interestingCode:TASKLIST /FI "IMAGENAME eq thinbasic.exe"
tskill thinbasic
pause
Hi Primo, the second loop should exit after the first pass because "ok" as an expression resolves to %TRUE.
You can use the red square of thinAir's toolbar to stop thinBasic's process.
Hi,
thanks a lot for reporting. I think we found the reason, will be fixed in next thinBASIC.
Petr
Thanks Petr for fixing it.
Can someone test if now it is working fine?
Attached new thinCore.dll
Please copy it into you \thinBasic\ path and try script.
Thanks
Eros