Code for newline in email body

Renegade

Member
Licensed User
Longtime User
I need help with the code for newline in email body

Basically I am looking to get the listview item and post it to email body

I need a newline for each entry in the email body
B4X:
Dim eMailMessage As Email
      eMailMessage.To.Add(EmailAdd)
      eMailMessage.Subject = EditText1.Text 
      count = ListView1.Size
      For i = 0 To count - 1
         
      Next
      eMailMessage.Body = ""
      StartActivity(eMailMessage.GetIntent) ' Send the eMail
 

Renegade

Member
Licensed User
Longtime User
That works but only picks up the first columns results

I need to pick up both as they relate to each other

Here is the code I am using for the columns

B4X:
ListView1.ScrollingBackgroundColor = Colors.Transparent
   ListView1.TwoLinesLayout.ItemHeight = 30dip
   ListView1.TwoLinesLayout.Label.Top = 0
   ListView1.TwoLinesLayout.Label.Left = 0
   ListView1.TwoLinesLayout.Label.Width = 50%x
   ListView1.TwoLinesLayout.Label.Height = 30dip
   ListView1.TwoLinesLayout.Label.Gravity = Gravity.CENTER
   'ListView1.TwoLinesLayout.Label.Color = Colors.Red
   ListView1.TwoLinesLayout.Label.TextSize = 15
   
   ListView1.TwoLinesLayout.SecondLabel.Top = 0
   ListView1.TwoLinesLayout.SecondLabel.Left = 37%x
   ListView1.TwoLinesLayout.SecondLabel.Width = 50%x
   ListView1.TwoLinesLayout.SecondLabel.Height = 30dip
   ListView1.TwoLinesLayout.SecondLabel.Gravity = Gravity.CENTER
   'ListView1.TwoLinesLayout.SecondLabel.Color = Colors.Transparent
   ListView1.TwoLinesLayout.SecondLabel.TextColor = Colors.Yellow
   ListView1.TwoLinesLayout.SecondLabel.TextSize = 15
 
Upvote 0

Renegade

Member
Licensed User
Longtime User
It is populated by this code

B4X:
ListView1.AddTwoLines(Label12.text, Label13.text)
   AirTime = AirTime + Label16.text
   ListView1.AddTwoLines("FlightTime: " & Label15.text , "AirTime: " & AirTime)
 
Upvote 0

Renegade

Member
Licensed User
Longtime User
Solved used addtwolines2 property

That works will get me out of trouble

Thks for everyones help:sign0098:
 
Upvote 0
Top