06-09-2024, 05:33 PM
I just ran across something that is confusing me.
The User32 function SetCursorPos as outlined here in the Microsoft docs:
https://learn.microsoft.com/en-us/window...tcursorpos
is a function. However, it's being declared as a SUB in the Wiki example code here:
https://qb64phoenix.com/qb64wiki/index.p...Mouse_Area
At first I though this was a typo but the code works. Is this a typo that somehow works? Or is it possible to declare FUNCTIONs as SUBs in certain circumstances?
The User32 function SetCursorPos as outlined here in the Microsoft docs:
https://learn.microsoft.com/en-us/window...tcursorpos
is a function. However, it's being declared as a SUB in the Wiki example code here:
https://qb64phoenix.com/qb64wiki/index.p...Mouse_Area
At first I though this was a typo but the code works. Is this a typo that somehow works? Or is it possible to declare FUNCTIONs as SUBs in certain circumstances?