BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to seperate letters in a StringList...?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Oren (Halvani.de)
Guest





PostPosted: Sun Jul 27, 2003 12:16 am    Post subject: How to seperate letters in a StringList...? Reply with quote



hi dear builders,

can someone tell me how I can seperate letters with a space " " in a
StringList like TMemo or TRichEdit...?
For example:

"PleaseSeperateMe"

into:

"P l e a s e S e p e r a t e M e"

Thanks in advance...


Oren



Back to top
Rodolfo Frino
Guest





PostPosted: Mon Jul 28, 2003 2:50 am    Post subject: Re: How to seperate letters in a StringList...? Reply with quote



You can also use the AnsiString::Insert() method

String S = "0123456789!@#$%^&*()abcdefghijABCDEFGHIJ";

for(int i = 2; i <= S.Length(); i+=2)
S = S.Insert(" ", i);


Rodolfo



"Oren (Halvani.de)"
Quote:
hi dear builders,

can someone tell me how I can seperate letters with a space " " in a
StringList like TMemo or TRichEdit...?
For example:

"PleaseSeperateMe"

into:

"P l e a s e S e p e r a t e M e"

Thanks in advance...


Oren





Back to top
Thorsten Kettner
Guest





PostPosted: Mon Jul 28, 2003 1:09 pm    Post subject: Re: How to seperate letters in a StringList...? Reply with quote




"Oren (Halvani.de)" <neroniker (AT) gmx (DOT) de> wrote:
Quote:
hi dear builders,

can someone tell me how I can seperate letters with a space " " in a
StringList like TMemo or TRichEdit...?
For example:

"PleaseSeperateMe"

into:

"P l e a s e S e p e r a t e M e"


Isn't this the same question you asked last November? Subject:
"How can I seperate a word to single characters ? like this:
OREN to: O R E N"?

Get your answers there.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.