To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7916
7915  |  7917
Subject: 
Re: Delphi Help Needed: Converting string to TStringList?
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 1 Oct 2002 21:50:18 GMT
Viewed: 
720 times
  
In lugnet.cad.dev, Anders Isaksson writes:
"Tore Eriksson" <tore.eriksson@mbox325.swipnet.se> skrev i meddelandet
news:H3B9uK.Jo6@lugnet.com...

strCompleteText: String;
MyStringList: TStringList;

How do I convert strCompleteText (containing LF's) into strings in
MyStringList?

MyStringList.Text := strCompleteText;

As long as you want one element in MyStringList for each LF-separated string
in strCompleteText, and nothing else.

D'ooooh, I tried MyStringList.Add(strCompleteText); and had all
strCompleteText in MyStringList.Strings[0]!

Now it works. Thanks a lot!
/Tore



Message is in Reply To:
  Re: Delphi Help Needed: Converting string to TStringList?
 
"Tore Eriksson" <tore.eriksson@mbox3...wipnet.se> skrev i meddelandet news:H3B9uK.Jo6@lugnet.com... (...) MyStringList? MyStringList.Text := strCompleteText; As long as you want one element in MyStringList for each LF-separated string in (...) (22 years ago, 1-Oct-02, to lugnet.cad.dev)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR