Android Question class ToString method?

leitor79

Active Member
Licensed User
Longtime User
Hi,

I'm using a dialog with B4XListTemplate and I've noticed that if I use a list of objects, the string shown it's kinda a composition of the properties names and values.

I'd like to know if there is a way to modify this behavior, like overriding the ToString() methind in .NET.

Thank you!
 

DonManfred

Expert
Licensed User
Longtime User
You can write your own tostring method in your class if you want to specify the output.
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
Thank you very much, @DonManfred and @Erel!

Anyway, It would have been nice to have the ability to use objects in that list, since options.SelectedItems.Get returns an object type.

Regards!!
 
Upvote 0
Top