Author Topic: Issue with _LOADFONT in function/sub  (Read 1787 times)

0 Members and 1 Guest are viewing this topic.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Issue with _LOADFONT in function/sub
« on: June 17, 2020, 10:59:36 pm »
I'm trying to make a function that takes advantage of the font registry library in the Wiki. When I use the _LOADFONT function in the main module (not in a function/sub), I have no errors. If I try to use the exact same code but within a function, the program fails with saying an illegal function call on the line calling _LOADFONT. I've used PRINT on those lines to verify that the output is the exact same. The only thing that is failing is the _LOADFONT. Can it not be used in a function/sub? Surely, that can't be the case. Any help, fellas?
NEVER MIND! I figured it out. It was an issue of variables not being shared/passed to the function. Fixed it!
« Last Edit: June 17, 2020, 11:20:39 pm by SpriggsySpriggs »
Shuwatch!