Android Question How to add new line to SMTP.body?

MaxWaterfall

Member
Licensed User
Longtime User
I am adding the contents of a list view to an email body to be sent to a client. Is it possible to add a new line to the email body after each item in the list has been added?

Also wandering if there is a way to find out the highest index in a listbox so I can loop through and add each item to a string without an error.

Thanks, Max
 

DonManfred

Expert
Licensed User
Longtime User
I am adding the contents of a list view to an email body to be sent to a client. Is it possible to add a new line to the email body after each item in the list has been added?
How are you adding the Listview to the email body?

Also wandering if there is a way to find out the highest index in a listbox
B4X:
dim maxindex as int = Listview.Size -1
?
so I can loop through and add each item to a string
It depends on what you put into the value when adding the listviewitems with addsingleline

Show us your code what you are doing so far and then we could give congrete tips
 
Upvote 0

MaxWaterfall

Member
Licensed User
Longtime User
Both answers solved my problem, sorry I did not specify it more. The message was not formatted in html and I didn't realise you could do listview.size now I know :)

Thanks, Max
 
Upvote 0
Top