Wish 2 helpers for a good cross platform handling

Cadenzo

Active Member
Licensed User
Longtime User
I do not think, that this one B4x-IDE, that is mentioned many times in the forum, would be very helpful. For me it is really no problem, to have this different IDEs. But there were three points there, that could really help. The biggest one is already realized, the cross platform copy/paste of views (many, many thanks!).

I know, that we can use shared modules and declare the code differences also there. I tried it, but it was more work and not so readable, as writing the code two times. What would be helpful:

1. A read only mode, when opening a project, just to copy/paste some code. It is too easy, to change the older project code by mistake.

2. A text comparer tool, that can compare two modules (B4A - B4) and marks the different codelines in red color.
 

sorex

Expert
Licensed User
Longtime User
as Erel mentioned you should structure your project correctly from the beginning by using classes.

in most of my games the project file (.B4A .B4i .B4J) is just a handfull of lines and all the rest is in the game class which is used by all project files.

also use XUI as much as possible as it works away a lot of conditional declarations.

working like this there's no need to text compare between version as it is the same class being used over multiple projects.
 

Cadenzo

Active Member
Licensed User
Longtime User
You should never make copies of the same code.
Yes, I know, and in new projects now I try to use from the beginning shared folders, xui, with SQL "ResultSet" isnread of "Cursor" and so on.
But in many older B4A projects, I did not have this experience. The good news are, that even in that cases it is not so much work, to transfer the code to B4i by copying the code and changing it a bit. I think, in praxis there are many projects, that were not designed from the first codeline for cross platform.
 
Top