Tool [B4X] JsonLayouts - synchronize json and binary layouts

LucaMs

Expert
Licensed User
Longtime User
I don't think that the explanation is correct. The zero comes from somewhere else.
[I wasn't fully awake]
That zero is written by your tool in the JSON, Erel, not by the clsLayoutInspector class, which takes the key parts from the JSON created by the tool.
I did some testing.

1 (absurd) I tried writing some text in a view tag, saved it, deleted the text, saved it, and the zero wasn't "generated" (that's what the AI assumed had happened).
2 I verified that the label tag that was showing as "0" was actually empty, and it was. I thought there might be an invisible character (well, now that I think about it, I only tried it in the Designer; I should have logged it at runtime). I followed the same steps as in step 1, and now the "0" isn't "invented" anymore.

Final outcome: mystery.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…