whitehat wrote: > I want to paste text data from the clipboard to a TEdit control. > Most of the time the data is a single line but sometimes it > consists of two or three lines. In these cases I only get the > first line. I'd like to concatenate the lines to make a single > line so I get all of the data. I'd replace the carriage return > linefeed pair with a semicolon and space. What's the best way > to handle this?
Rather than just using TEdit.PasteFromClipboard, I'd use the Clipboard object thusly: 1. Copy its text into a local string (StringVar := Clipboard.AsText) 2. Massage the string as desired to fix the line terminators 3. Then do Edit1.Text := StringVar HTH Stephen Posey [EMAIL PROTECTED] __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
