Vote UpVote

Working with Code in your Code: MultiPaste and Smart Trim

TwoDesk Delphi Blog – Sometimes, you need to put HTML, SQL, or some other text in your Delphi code, like this: sql.add('SELECT s.symbol, s.value, m.name'); sql.add('FROM Stock s'); sql.add('INNER JOIN Market m'); sql.add('ON s.exchange_id = m.id'); In a nutshell, you’ve got some multi-line text that you need to have in your code, and you need to do the same thing to every line in that text (like adding it to a TStrings). There’s a little-known feature in Castalia called MultiPaste, which is designed for those situations. It looks like this: MultiPaste allows you to append text before and after each ...
Favorite? Off-Topic? jacob @ 2013-02-25 23:43


Visits: 857
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Andreas Schachtner
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)