<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: SQL-to-Code Macro</title>
	<atom:link href="http://blogs.teamb.com/craigstuntz/2008/04/04/37810/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.teamb.com/craigstuntz/2008/04/04/37810/</link>
	<description>C# • Entity Framework • Functional Programming • MVC • Web</description>
	<pubDate>Sat, 11 Feb 2012 15:23:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Martijn Tonies</title>
		<link>http://blogs.teamb.com/craigstuntz/2008/04/04/37810/#comment-4029</link>
		<dc:creator>Martijn Tonies</dc:creator>
		<pubDate>Tue, 21 Oct 2008 18:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2008/04/04/37810#comment-4029</guid>
		<description>I too needed this, so I built it into Database Workbench ;-)

Also, it works two way, copying from Database Workbench to Delphi allows you to create a constant or something like Query.SQL.Add(' ... ') and the other way around will strip doubled single quotes etc and make it into a normal SQL string... Works like a charm and I use it a lot.</description>
		<content:encoded><![CDATA[<p>I too needed this, so I built it into Database Workbench <img src='http://blogs.teamb.com/craigstuntz/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Also, it works two way, copying from Database Workbench to Delphi allows you to create a constant or something like Query.SQL.Add(&#8217; &#8230; &#8216;) and the other way around will strip doubled single quotes etc and make it into a normal SQL string&#8230; Works like a charm and I use it a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blogs.teamb.com/craigstuntz/2008/04/04/37810/#comment-3494</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 24 Apr 2008 06:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2008/04/04/37810#comment-3494</guid>
		<description>I think the free online sql formatter can help you do is instantly.

http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm</description>
		<content:encoded><![CDATA[<p>I think the free online sql formatter can help you do is instantly.</p>
<p><a href="http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm" rel="nofollow">http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Derk</title>
		<link>http://blogs.teamb.com/craigstuntz/2008/04/04/37810/#comment-3466</link>
		<dc:creator>Jan Derk</dc:creator>
		<pubDate>Sun, 06 Apr 2008 20:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2008/04/04/37810#comment-3466</guid>
		<description>Hopefully, CodeGear will add support for multi-line strings to Delphi, like all other modern languages already have. 

That way we the developers would not have to resort to hacks like this. Plus it will make the source code more readable.

Andreas Hausladen already created an extension which does this, but I like to see it integrated:
http://andy.jgknet.de/blog/archives/50-Multiline-string-constants.html</description>
		<content:encoded><![CDATA[<p>Hopefully, CodeGear will add support for multi-line strings to Delphi, like all other modern languages already have. </p>
<p>That way we the developers would not have to resort to hacks like this. Plus it will make the source code more readable.</p>
<p>Andreas Hausladen already created an extension which does this, but I like to see it integrated:<br />
<a href="http://andy.jgknet.de/blog/archives/50-Multiline-string-constants.html" rel="nofollow">http://andy.jgknet.de/blog/archives/50-Multiline-string-constants.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken White</title>
		<link>http://blogs.teamb.com/craigstuntz/2008/04/04/37810/#comment-3463</link>
		<dc:creator>Ken White</dc:creator>
		<pubDate>Fri, 04 Apr 2008 17:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2008/04/04/37810#comment-3463</guid>
		<description>Nice post.

I have a better way, though. Peter Below posted code for a console app a while back called "cliptoconst", which takes text off the clipboard and automatically formats it for the IDE (including + and ; in the proper places).  I added it to the RAD Studio 2007 Tools menu, assigning a mnemonic shortcut key (C, for "ClipToConst"). So going from SQL Server Management Studio or Visual Query Builder to the code editor is simple:

1. Select the text in the query tool and then Ctrl+C.
2. Switch to the IDE, type "const" and Enter.
3. Alt+T+C (for Tools-&#62;ClipToConst)
4. Ctrl+V to paste.

Voila! Now I have a properly formatted (and indented) constant declaration.</description>
		<content:encoded><![CDATA[<p>Nice post.</p>
<p>I have a better way, though. Peter Below posted code for a console app a while back called "cliptoconst", which takes text off the clipboard and automatically formats it for the IDE (including + and ; in the proper places).  I added it to the RAD Studio 2007 Tools menu, assigning a mnemonic shortcut key (C, for "ClipToConst"). So going from SQL Server Management Studio or Visual Query Builder to the code editor is simple:</p>
<p>1. Select the text in the query tool and then Ctrl+C.<br />
2. Switch to the IDE, type "const" and Enter.<br />
3. Alt+T+C (for Tools-&gt;ClipToConst)<br />
4. Ctrl+V to paste.</p>
<p>Voila! Now I have a properly formatted (and indented) constant declaration.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

