Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help converting old style def fn functions
#4
(07-08-2022, 12:27 AM)James D Jarvis Wrote: In this function X and Y will always be 0.

---------------------------
Function FND (Q)
    FND = (64 * (Q - 1)) + (8 * (X - 1)) + Y

End Function
----------------------



not 100% sure it'll work but I'd recommend adding this line after the original source code line 1130:

Dim Shared x, y

Thanks, I think that may be it! 
It makes sense that those would be global variables with the old Def Fn.
Reply


Messages In This Thread
RE: need help converting old style def fn functions - by madscijr - 07-08-2022, 04:16 AM



Users browsing this thread: 1 Guest(s)