Well, I figured it out myself. It's built into Delphi. WrapText...

I feel silly.

-----Original Message-----
From: Jeff Young [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 11:15 PM
To: 'Borland's Delphi Discussion List'
Subject: Breaking a string apart at a set point.

I've googled the death out of this and can't find a suitable answer to my
dilemma. I need to break a string at the nearest word at a set point. 65
characters to be exact. The old FoxPro database I'm forced to write to for
backwards compatibility is set up that way. And for some reason the logic
eludes me.

So I need to break a line of text at the last word prior to every 65th
character. It should also break on #13#10 as well to maintain formatting.

Any ideas out there?

Thanks,

Jeff Young

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to