M MaxWaterfall Member Licensed User Longtime User Dec 19, 2014 #1 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
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
Peter Simpson Expert Licensed User Longtime User Dec 19, 2014 #2 Hello, Try adding & <br> to the end of the line if the email format is in HTML or Try & CRLF to the end of the line if not Formatted in HTML Upvote 0
Hello, Try adding & <br> to the end of the line if the email format is in HTML or Try & CRLF to the end of the line if not Formatted in HTML
DonManfred Expert Licensed User Longtime User Dec 19, 2014 #3 MaxWaterfall said: 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? Click to expand... How are you adding the Listview to the email body? MaxWaterfall said: Also wandering if there is a way to find out the highest index in a listbox Click to expand... Code: Copy dim maxindex as int = Listview.Size -1 ? MaxWaterfall said: so I can loop through and add each item to a string Click to expand... 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 said: 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? Click to expand... How are you adding the Listview to the email body? MaxWaterfall said: Also wandering if there is a way to find out the highest index in a listbox Click to expand... Code: Copy dim maxindex as int = Listview.Size -1 ? MaxWaterfall said: so I can loop through and add each item to a string Click to expand... 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
M MaxWaterfall Member Licensed User Longtime User Dec 19, 2014 #4 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
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
Peter Simpson Expert Licensed User Longtime User Dec 19, 2014 #5 Oops, sorry I forgot to answer your second question which is Listview.Size - 1 @DonManfred what have I told you about taking the day off matey??? Upvote 0
Oops, sorry I forgot to answer your second question which is Listview.Size - 1 @DonManfred what have I told you about taking the day off matey???
DonManfred Expert Licensed User Longtime User Dec 20, 2014 #6 Peter Simpson said: what have I told you about taking the day off matey??? Click to expand... Off from b4a-forum??? It´s my HOME Upvote 0
Peter Simpson said: what have I told you about taking the day off matey??? Click to expand... Off from b4a-forum??? It´s my HOME