Use OPTION to Include a module
Posted: Tue Feb 28, 2017 11:00 am
Hi at all,
there is a way to specify a module to be included through OPTION ?
.. this works perfectly and I can refer to the file by replacing his name with cLOGO_IMAGE_NAME .
But
.. does not get the desired result, and the module is not included.
There is a way to do so? Also with some macro?
Thanks to all !
there is a way to specify a module to be included through OPTION ?
Code: Select all
#option LOGO = "mylogo.jpg"
#if IsOption(LOGO)
Public Const cLOGO_IMAGE_NAME = LOGO
#else
#error "Undefined option LOGO"
#endif
But
Code: Select all
#option MY_MODULE= "mymodule.bas"
#if IsOption(LOGO)
Public Const cMY_MODULE = MY_MODULE
#else
#error "Undefined option MY_MODULE"
#endif
Include cMY_MODULE
There is a way to do so? Also with some macro?
Thanks to all !