On Jul 24, 2006, at 11:57 AM, Tommy Single wrote:

How do I write multiple lines to an editfield?

You separate each line with a "EndOfLine" method (which returns the correct end-of-line for the platform).

  Editfield1.Text = "This is line #1." + EndOfLine + "This is line #2."

Another option, which I like a lot and is a lot more CPU and memory efficient is using a string array when you are building the individual lines:

  Dim s() As String

  s.Append("This is line #1.")
  s.Append("This is line #2.")
  s.Append("This is line #3.")

  Editfield1.Text = Join(s, EndOfLine)


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to