Everyone has their own idiosyncrasies when coding, so I don't want to start an argument.
Inverted didn't say (as he should have) what version of DB he was using.
If he was using DB Classic he wouldn't have words as an option whereas integers apply to both versions of DB.
Undoubtedly, there's good reason to use words when you can, but the DB instructions say that the mousex() and mousey() functions
return integers so you can't go wrong if you stick with what they say.
Quote: "Speed difference isn't something you'd notice by changing 1 line of code"
Correct. But all those 'one lines of code' will soon add up - especially if he is using DBC.
On that note, you'll note that the code I posted only repositions the mouse if it strays out of the defined area.
TDK