﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.howtodothings.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>HowToDoThings.com Delphi</title>
 <link>http://www.howtodothings.com/computers/c39-delphi.html/popular-articles</link>
 <description>A list of popular articles by category as a list.</description>
 <language>en</language>
<item>
 <title>Updating a table with data from another table with Local SQL</title>
 <link>http://www.howtodothings.com/computers/a1173-updating-a-table-with-data-from-another-table-with-local-sql.html</link>
 <description>&lt;p&gt;The UPDATE sentence of Local SQL (the SQL used by the BDE) doesn&#039;t support JOIN... How two update a table with data from another table?&lt;br&gt;&lt;br&gt;&lt;b&gt;Updating a table with data from another table with Local SQL&lt;/b&gt;&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;code&gt;+-------------+              +-------------+&lt;br&gt;&lt;br /&gt;
|  Orders.db  |              | Customer.db |&lt;br&gt;&lt;br /&gt;
+-------------+              +-------------+&lt;br&gt;&lt;br /&gt;
|   CustNo    | &amp;lt;&amp;lt;---------&amp;gt; |    CustNo   |&lt;br&gt;&lt;br /&gt;
| ShipToAddr1 |              |    Addr1    |&lt;br&gt;&lt;br /&gt;
| ShipToAddr2 |              |    Addr2    |&lt;br&gt;&lt;br /&gt;
+-------------+              +-------------+&lt;/code&gt;&lt;br&gt;&lt;br /&gt;
Assuming that we wanted to update the fields ShipToAddr1 and ShipToAddr2 of the Orders.db table with the values of the fields Addr1 and Addr2 respectively from the table Customer.db, for those records of Orders that have both fields blank, and joining the tables by the field CustNo present in both tables, perhaps we would be temped to write:&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a1173-updating-a-table-with-data-from-another-table-with-local-sql.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a1173-updating-a-table-with-data-from-another-table-with-local-sql.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c39-delphi.html">Delphi</category>
 <pubDate>Sun, 19 Aug 2001 23:00:00 -0500</pubDate>
 <dc:creator />
 <guid isPermaLink="false">333 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>Embedding files as resources in a Delphi executable</title>
 <link>http://www.howtodothings.com/computers/a1176-embedding-files-as-resources-in-a-delphi-executable.html</link>
 <description>&lt;p&gt;How to embed icons, cursors, animated cursors, bitmaps, jpeg images, wave files, text files and any other file inside a Delphi executable.&lt;br&gt;&lt;br&gt;Embedding files as resources in a Delphi executable&lt;br&gt;&lt;br /&gt;
It is possible to embed any kind of file in an executable using resource files (*.RES). Certain kinds of resources are recognized by the API and can be used directly. Others are simply taken as binary data and its up to you to use them. In this article we will see examples of both kinds.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
To create the resource file we start with the source file (*.RC), for example named RESOURCES.RC, which is a simple text file that contains the resource entries (name, class and file):&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;code&gt;  sample_bmp   BITMAP     sample.bmp&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;sample_ico   ICON       sample.ico&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;sample_cur   CURSOR     sample.cur&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;sample_ani   ANICURSOR  sample.ani&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;sample_jpg   JPEG       sample.jpg&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a1176-embedding-files-as-resources-in-a-delphi-executable.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a1176-embedding-files-as-resources-in-a-delphi-executable.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c39-delphi.html">Delphi</category>
 <pubDate>Sun, 19 Aug 2001 23:00:00 -0500</pubDate>
 <dc:creator />
 <guid isPermaLink="false">336 at http://www.howtodothings.com</guid>
</item>
<item>
 <title>A String class for delphi</title>
 <link>http://www.howtodothings.com/computers/a1066-a-string-class-for-delphi.html</link>
 <description>&lt;p&gt;A string class wich incapsulates several string functions&lt;br&gt;&lt;br&gt;I have done this small string class basing myself on QStrings and FastStrings, thus this class is fast and handles several string functions. BTW in order to compile and use this class you will need FastStrings (you can get a copy at &lt;a href=&quot;http://www.stuckindoors.com/delphi/faststrings&quot;&gt;Peter Morris Homepage&lt;/a&gt;).&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
Why make a string class? well although this class lacks operator overloading I need it, and thought someone migth benefit of it.&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
UPDATE: Added case sensitive StartsWith and EndsWith&lt;br&gt;&lt;br /&gt;
FIXED : Bugs in Left, Right, Faster WordCount (copied from QStrings)&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;code&gt;&lt;font size=&quot;3&quot; face=&quot;Courier New&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;b&gt;unit &lt;/b&gt;IMLCommon;&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;b&gt;interface&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
uses&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/b&gt;SysUtils, Classes;&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&lt;b&gt;type&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/b&gt;TCharSet = &lt;b&gt;Set of &lt;/b&gt;Char;&lt;br&gt;&lt;br /&gt;
&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;TString = &lt;b&gt;class&lt;br&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;private&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.howtodothings.com/computers/a1066-a-string-class-for-delphi.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.howtodothings.com/computers/a1066-a-string-class-for-delphi.html#comments</comments>
 <category domain="http://www.howtodothings.com/computers/c39-delphi.html">Delphi</category>
 <pubDate>Thu, 18 Apr 2002 23:00:00 -0500</pubDate>
 <dc:creator />
 <guid isPermaLink="false">257 at http://www.howtodothings.com</guid>
</item>
</channel>
</rss>
