Rory Daulton wrote:

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

Oooh, good point about using SelText rather than Text, in case 
not the entire text is selected in the Edit.

Stephen Posey
[EMAIL PROTECTED]

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

Reply via email to