Whitehat,

> 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?

I haven't tried it, but could you simply copy the Clipboard's contents to a 
string (using TClipBoard.AsText), do a search-and-replace on it (using ???), 
then use the new string to simulate a paste (using TEdit.SelText)?

Rory Daulton
[EMAIL PROTECTED] 


-------------------------------------------------------------------------------
[This e-mail scanned for viruses and spam by Nmax - "Your MAXimum Connection!"]

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

Reply via email to