R Renegade Member Licensed User Longtime User Aug 28, 2012 #1 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 Code: Copy 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
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 Code: Copy 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
margret Well-Known Member Licensed User Longtime User Aug 28, 2012 #2 Maybe like this: Code: Copy Dim Body As String For i = 0 To count - 1 Body = Body & ListView1.GetItem(i) & CRLF Next eMailMessage.Body = Body Upvote 0
Maybe like this: Code: Copy Dim Body As String For i = 0 To count - 1 Body = Body & ListView1.GetItem(i) & CRLF Next eMailMessage.Body = Body
R Renegade Member Licensed User Longtime User Aug 29, 2012 #3 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 Code: Copy 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
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 Code: Copy 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
klaus Expert Licensed User Longtime User Aug 29, 2012 #4 How do you populate the ListView ? Best regards. Upvote 0
R Renegade Member Licensed User Longtime User Aug 29, 2012 #5 It is populated by this code Code: Copy ListView1.AddTwoLines(Label12.text, Label13.text) AirTime = AirTime + Label16.text ListView1.AddTwoLines("FlightTime: " & Label15.text , "AirTime: " & AirTime) Upvote 0
It is populated by this code Code: Copy ListView1.AddTwoLines(Label12.text, Label13.text) AirTime = AirTime + Label16.text ListView1.AddTwoLines("FlightTime: " & Label15.text , "AirTime: " & AirTime)
R Renegade Member Licensed User Longtime User Aug 29, 2012 #6 Solved used addtwolines2 property That works will get me out of trouble Thks for everyones help:sign0098: Upvote 0
Solved used addtwolines2 property That works will get me out of trouble Thks for everyones help:sign0098: