and the other question;
when i run the code below;
local ui = require "ui"
-- create a simple window
local win = ui.Window("Window.cursor sample", 320, 200)
win:show()
win:status("Hover the window to view the 'hand' cursor !")
-- set the mouse cursor when hovering the window
win.cursor = "hand"
-- update user interface
repeat
ui.update()
until not win.visible
and
"Hover the window to view the 'hand' cursor !" When I press the right click button of the mouse anywhere in the menu bar that says as folowing
; executing: GOTO EXIT
- no label found: EXIT
; executing: ENDIF
- Unexpected ENDIF found, without preceding IF.
To prevent unpredictable behavior, the script is stopped.
Why might it be giving this error?