Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share global declarations between macros
#2
There is no #include, but are several similar options.


Quote:I am working on programming an application that uses several macros and functions


If the application always runs in Quick Macros, ie not as separate .exe file, you can:
Create function named "init2", if does not exist. Place the int+, def etc there. Run it. Next time, when QM starts, the function runs automatically. Global variables and constants are available in all macros/functions/etc.

If the application runs as .exe, create a function like described above and call it at the start of application. If the application also runs in QM, call the function from function init2.

See also in QM help: #compile


Messages In This Thread
RE: Share global declarations between macros - by Gintaras - 08-22-2018, 02:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)