- Jun 6, 2020
- 11,559
- 4,422
Is there a way to turn this...
B4X:
...into something this...
B4X:
The end goal would be that the project would have no actual mention of the class myClass, other than as a string.
(Why? Because I'm making a framework that will be used in more than one app, and the "myInstance" could refer to different classes, depending on what app I'm compiling. I really want to keep the framework library identical for all the apps, and then the "outer" app just defines what should be used.
To illustrate: Let's say I'm making a game-app AppA with four small mini-games in it, where the game classes are called G1, G2, G3 and G4. I'm also making game-app AppB, that has G1, G2 but then it has G5 and G6. I would like to keep the framework completely...
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
...into something this...
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
The end goal would be that the project would have no actual mention of the class myClass, other than as a string.
(Why? Because I'm making a framework that will be used in more than one app, and the "myInstance" could refer to different classes, depending on what app I'm compiling. I really want to keep the framework library identical for all the apps, and then the "outer" app just defines what should be used.
To illustrate: Let's say I'm making a game-app AppA with four small mini-games in it, where the game classes are called G1, G2, G3 and G4. I'm also making game-app AppB, that has G1, G2 but then it has G5 and G6. I would like to keep the framework completely...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید