WARNING: Text was last set as RAW HTML, so the result of .Text can be unpredictable
This statement ( unpredictable ) is very true... depending on findings below.
This is in use with ABMEditor.
I only get the above WARNING when the Log () is presented when coming from a phone or a tablet.
When running the same on a desktop, this warning is not presented...
Also, if I use the "wrong code" on a phone or tablet (Android), each item is duplicated. On a desktop - it is not. ( @alwaysbusy stated that SIZE_CUSTOM is a simple <div> )
I have followed the recommendations from all posts regarding ABMEditor and can (eventually) make it work to expectations, but I am left bewildered of the hoops required to get the desired results.
This is what is stored in my DB to populate the ABMLabel to format correctly...
The above stored data can get much more complicated than that...
Thanks for any info and enlightenment...
This statement ( unpredictable ) is very true... depending on findings below.
This is in use with ABMEditor.
B4X:
' Right code - works fine - SIZE_CUSTOM
Dim agnitemslbl1 As ABMLabel
agnitemslbl1.Initialize(page,"ablbl1"&i,"",ABM.SIZE_CUSTOM,False,"")
agnitemslbl1.Text = ""
' wrong code - creates a duplicate of label text problem - SIZE_PARAGRAPH
Dim agnitemslbl1 As ABMLabel
agnitemslbl1.Initialize(page,"ablbl1"&i,"",ABM.SIZE_PARAGRAPH,False,"")
agnitemslbl1.Text = ""
I only get the above WARNING when the Log () is presented when coming from a phone or a tablet.
When running the same on a desktop, this warning is not presented...
Also, if I use the "wrong code" on a phone or tablet (Android), each item is duplicated. On a desktop - it is not. ( @alwaysbusy stated that SIZE_CUSTOM is a simple <div> )
I have followed the recommendations from all posts regarding ABMEditor and can (eventually) make it work to expectations, but I am left bewildered of the hoops required to get the desired results.
This is what is stored in my DB to populate the ABMLabel to format correctly...
B4X:
<div>A discussion was held about the <u>permanent expulsion</u> of Peter Brown and Robert Palmer and whether they should be allowed back. – <b><u>this was deemed a non-issue</u></b>.<br></div>
The above stored data can get much more complicated than that...
Thanks for any info and enlightenment...