Android Question XUI Views 2.24 and csbuilder

MarcoRome

Expert
Licensed User
Longtime User
Hi all.
If i have this code:
B4X:
cslike.Initialize.Color(Colors.Red).Bold.Size(23).Append($"2"$).PopAll
clv.AddTextItem($"${cslike}"$,"")
Dont Work.
If i have this code:
B4X:
cslike.Initialize.Color(Colors.Red).Bold.Size(23).Append($"2"$).PopAll
clv.AddTextItem(cslike,"")
Work
Is normal ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I've moved it to the question forum. This is the correct place to start unless you are sure that it is a bug.

This result of this code will always be a string. The value or type of cslike doesn't matter.
B4X:
$"${cslike}"$

In order for CSBuilder to work it must not be converted to a simple string:
B4X:
clv.AddTextItem(cslike,"")
This is the reason that the type of the 'Text' parameter is Object:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…