I have many classes that I use in cross-platform app projects that are using XUI.SubExists before calling CallSub.
I'm writing a Server project that will use the same classes.
I know I can't use XUI in a NON-UI project, so all XUI.SubExists are marked as errors.
I also tried to make my own XUI code module which redefines SubExists, but as soon as I type "Public Sub SubExists" the identifier is marked as error because it's a reserved keyword.
Is there any solution to this aside from wrapping each call like this?
I'm writing a Server project that will use the same classes.
I know I can't use XUI in a NON-UI project, so all XUI.SubExists are marked as errors.
I also tried to make my own XUI code module which redefines SubExists, but as soon as I type "Public Sub SubExists" the identifier is marked as error because it's a reserved keyword.
Is there any solution to this aside from wrapping each call like this?
B4X:
#if SERVER
if SubEsists(module, subname) ...
#else
if xui.SubEsists(module, subname, params) ...
#end if