<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Xucro, Programação, Mysql, Delphi</title>
	<atom:link href="http://xucro.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://xucro.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 21:14:21 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xucro.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Xucro, Programação, Mysql, Delphi</title>
		<link>http://xucro.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xucro.wordpress.com/osd.xml" title="Xucro, Programação, Mysql, Delphi" />
	<atom:link rel='hub' href='http://xucro.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Remover Substring de uma String</title>
		<link>http://xucro.wordpress.com/2011/09/22/remover-substring-de-uma-string/</link>
		<comments>http://xucro.wordpress.com/2011/09/22/remover-substring-de-uma-string/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 16:19:41 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[apagar palavra]]></category>
		<category><![CDATA[apagar substring]]></category>
		<category><![CDATA[como apagar uma palavra]]></category>
		<category><![CDATA[como remover uma palavra]]></category>
		<category><![CDATA[Delphi 2010]]></category>
		<category><![CDATA[função]]></category>
		<category><![CDATA[procedure]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[remover palavra]]></category>
		<category><![CDATA[remover substring]]></category>
		<category><![CDATA[substring]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=205</guid>
		<description><![CDATA[Apagando Substring de uma String<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=205&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Olá pessoal, hoje mostrarei como remover uma <em>substring</em> de uma <em>string</em>.</p>
<p>Para isso, usaremos a função nativa do <em>Delphi</em> chamada <em>Delete</em>, para isso é preciso declarar a <em>unit System</em>.</p>
<p>Mas para ficar melhor, criaremos uma <em>procedure</em> para melhor entendermos.</p>
<p>Então vamos lá.</p>
<blockquote><p>procedure RemovePalavra(var origem: string; apagar: string);</p>
<p>var</p>
<p>InicioPalavra, TamanhoPalavra : Integer;</p>
<p>begin</p>
<p>InicioPalavra := pos(apagar,origem);</p>
<p>TamanhoPalavra := length(apagar);</p>
<p>if InicioPalavra &gt; 0 then</p>
<p>Delete(origem,InicioPalavra,TamanhoPalavra);</p>
<p>end;</p></blockquote>
<p>A função <em>Delete</em> recebe como parâmetro<em> :</em></p>
<ul>
<li><em>String</em> que contem a palavra a ser removida;</li>
<li>Posição inicial onde achou a palavra a ser removida;</li>
<li>Tamanho da palavra a ser removida.</li>
</ul>
<p>Obs.: Vale lembrar que existe diferença entre maiúscula e minúscula, ou seja é <em>Case Sensitive</em>.</p>
<p>Obrigado.</p>
<p>Espero ter ajudado.</p>
<p>Até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=205&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2011/09/22/remover-substring-de-uma-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Repetir expressão várias vezes em Delphi</title>
		<link>http://xucro.wordpress.com/2011/09/19/repetir-expressao-varias-vezes-em-delphi/</link>
		<comments>http://xucro.wordpress.com/2011/09/19/repetir-expressao-varias-vezes-em-delphi/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 12:13:52 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[como repetir string]]></category>
		<category><![CDATA[concatenar]]></category>
		<category><![CDATA[DupeString]]></category>
		<category><![CDATA[Função Nativa]]></category>
		<category><![CDATA[repetir expressão]]></category>
		<category><![CDATA[repetir frase]]></category>
		<category><![CDATA[repetir palavra]]></category>
		<category><![CDATA[repetir string]]></category>
		<category><![CDATA[strutils]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=202</guid>
		<description><![CDATA[Repetir um expressão n vezes no Delphi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=202&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Olá, neste <em>post</em> irei mostrar uma função para repetir uma expressão várias vezes.</p>
<p>A função em si se chama <em><strong>DupeString</strong></em>, deve-se declarar a uses <em>StrUtils</em>.</p>
<p>Para usa-la, devemos passar como parâmetro a expressão a ser repetida e a quantidade de vezes que queremos repetir essa expressão.</p>
<p>Vamos ao exemplo:</p>
<blockquote><p>&#8230;.</p>
<p>var</p>
<p>palavra : string;</p>
<p>begin</p>
<p>palavra := DupeString(&#8216;Ha&#8217;,5);</p>
<p>ShowMessage(palavra);</p>
<p>end;</p></blockquote>
<p>O resultado obtido será a expressão &#8216;Ha&#8217; repetida 5 vezes, &#8216;HaHaHaHaHa&#8217;.</p>
<p>Espero ter ajudado, até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=202&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2011/09/19/repetir-expressao-varias-vezes-em-delphi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Cast com datas no MySQL</title>
		<link>http://xucro.wordpress.com/2011/08/25/cast-com-datas-no-mysql/</link>
		<comments>http://xucro.wordpress.com/2011/08/25/cast-com-datas-no-mysql/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 11:01:38 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[banco de dados]]></category>
		<category><![CDATA[cast]]></category>
		<category><![CDATA[converter tipos]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">https://xucro.wordpress.com/?p=186</guid>
		<description><![CDATA[Uma dica para fazer comparação entre datas sem necessidade de hora, basta usar o cast, ou seja, forçar um datetime se transformar em apenas data. Um exemplo seria pegar todos os registros de um log em um determinado dia, independente da hora do registro. Então vamos a prática. Select usuario,descricao,data from log_acao where cast(data as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=186&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Uma dica para fazer comparação entre datas sem necessidade de hora, basta usar o <em>cast</em>, ou seja, forçar um <em>datetime</em> se transformar em apenas data.<br />
Um exemplo seria pegar todos os registros de um log em um determinado dia, independente da hora do registro.<br />
Então vamos a prática.</p>
<blockquote><p>Select usuario,descricao,data from log_acao where cast(data as date) = cast(data_parametro as date)</p></blockquote>
<p>ou</p>
<blockquote><p>Select usuario,descricao,data from log_acao where date(data) = date(data_parametro)</p></blockquote>
<p>Espero ter ajudado. Até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=186&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2011/08/25/cast-com-datas-no-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Dicas para report builder em delphi</title>
		<link>http://xucro.wordpress.com/2011/06/20/dicas-para-report-builder-em-delphi/</link>
		<comments>http://xucro.wordpress.com/2011/06/20/dicas-para-report-builder-em-delphi/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 02:55:59 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[experiênte]]></category>
		<category><![CDATA[iniciante]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[relatório]]></category>
		<category><![CDATA[report builder]]></category>
		<category><![CDATA[técnicas]]></category>
		<category><![CDATA[tecnologia]]></category>

		<guid isPermaLink="false">https://xucro.wordpress.com/2011/06/20/dicas-para-report-builder-em-delphi/</guid>
		<description><![CDATA[Olá, postarei o link do site oficial de dicas do próprio report builder. Para quem esta começando e para quem já usa essa excelente ferramenta de gerar relatórios. www.digital-metaphors.com:8080 Espero ter ajudado.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=182&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Olá, postarei o link do site oficial de dicas do próprio report builder.<br />
Para quem esta começando e para quem já usa essa excelente ferramenta de gerar relatórios.<br />
<a href="http://www.digital-metaphors.com:8080">www.digital-metaphors.com:8080</a><br />
Espero ter ajudado.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=182&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2011/06/20/dicas-para-report-builder-em-delphi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Trabalhando com Datas no Delphi</title>
		<link>http://xucro.wordpress.com/2011/05/18/trabalhando-com-datas-no-delphi/</link>
		<comments>http://xucro.wordpress.com/2011/05/18/trabalhando-com-datas-no-delphi/#comments</comments>
		<pubDate>Wed, 18 May 2011 16:09:19 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Ano Corrente]]></category>
		<category><![CDATA[aprendizagem]]></category>
		<category><![CDATA[datas]]></category>
		<category><![CDATA[Delphi 2010]]></category>
		<category><![CDATA[Delphi 5]]></category>
		<category><![CDATA[Dias no Período]]></category>
		<category><![CDATA[Dias Uteis no Mês]]></category>
		<category><![CDATA[função]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[procedimento]]></category>
		<category><![CDATA[procedure]]></category>
		<category><![CDATA[rotina]]></category>
		<category><![CDATA[unit]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=178</guid>
		<description><![CDATA[Trabalhando com Datas no Delphi 5<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=178&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Olá, estou meio atarefado e não estou com tempo para postar mais coisas.</p>
<p>Bom, irei postar algumas rotinas para trabalhar com datas no delphi 5, usando algumas rotinas existentes no Delphi 2010.</p>
<p>Sei que não são todas as rotinas, mas é de grande ajuda.</p>
<blockquote><p>unit Datas;</p>
<p>interface</p>
<p>uses<br />
SysUtils, Math;</p>
<p>resourcestring<br />
SInvalidDateTime = &#8221;&#8221;&#8217;%s&#8221;&#8221; is not a valid date and time&#8217;;</p>
<p>function DaysBetween(const ANow, AThen: TDateTime): Integer;<br />
function DaySpan(const ANow, AThen: TDateTime): Double;<br />
function SpanOfNowAndThen(const ANow, AThen: TDateTime): TDateTime;<br />
function DayOf(const AValue: TDateTime): Word;<br />
function MonthOfTheYear(const AValue: TDateTime): Word;<br />
function MonthOf(const AValue: TDateTime): Word;<br />
function YearOf(const AValue: TDateTime): Word;<br />
function CurrentYear: Word;<br />
function DiasUteis(mes,ano:Integer ):integer;</p>
<p>function Today: TDateTime;<br />
function Yesterday: TDateTime;<br />
function Tomorrow: TDateTime;<br />
function DaysInMonth(const AValue: TDateTime): Word;<br />
function DaysInAMonth(const AYear, AMonth: Word): Word;</p>
<p>function RecodeTime(const AValue: TDateTime; const AHour, AMinute, ASecond,<br />
AMilliSecond: Word): TDateTime;<br />
function RecodeDateTime(const AValue: TDateTime; const AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond: Word): TDateTime;<br />
function TryRecodeDateTime(const AValue: TDateTime; const AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond: Word; out AResult: TDateTime): Boolean;</p>
<p>function StartOfTheMonth(const AValue: TDateTime): TDateTime;<br />
function EndOfTheMonth(const AValue: TDateTime): TDateTime;<br />
function EndOfTheDay(const AValue: TDateTime): TDateTime;<br />
function DayOfTheWeek(const AValue: TDateTime): Word;</p>
<p>function IncYear(const Anow: TDateTime; Anos : integer): TDateTime;<br />
function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer): TDateTime;</p>
<p>procedure InvalidDateTimeError(const AYear, AMonth, ADay, AHour, AMinute,<br />
ASecond, AMilliSecond: Word; const ABaseDate: TDateTime);</p>
<p>procedure DecodeDateTime(const AValue: TDateTime; out AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond: Word);</p>
<p>function TryEncodeDateTime(const AYear, AMonth, ADay, AHour, AMinute, ASecond,<br />
AMilliSecond: Word; out AValue: TDateTime): Boolean;</p>
<p>const<br />
RecodeLeaveFieldAsIs = High(Word);<br />
HoursPerDay   = 24;<br />
MinsPerHour   = 60;<br />
SecsPerMin    = 60;<br />
MSecsPerSec   = 1000;<br />
MinsPerDay    = HoursPerDay * MinsPerHour;<br />
SecsPerDay    = MinsPerDay * SecsPerMin;<br />
SecsPerHour   = SecsPerMin * MinsPerHour;<br />
MSecsPerDay   = SecsPerDay * MSecsPerSec;</p>
<p>implementation</p>
<p>function TryEncodeTime(Hour, Min, Sec, MSec: Word; out Time: TDateTime): Boolean;<br />
var<br />
TS: TTimeStamp;<br />
begin<br />
Result := False;<br />
if (Hour &lt; HoursPerDay) and (Min &lt; MinsPerHour) and (Sec &lt; SecsPerMin) and (MSec &lt; MSecsPerSec) then<br />
begin<br />
TS.Time :=  (Hour * (MinsPerHour * SecsPerMin * MSecsPerSec))<br />
+ (Min * SecsPerMin * MSecsPerSec)<br />
+ (Sec * MSecsPerSec)<br />
+  MSec;<br />
TS.Date := DateDelta; // This is the &#8220;zero&#8221; day for a TTimeStamp, days between 1/1/0001 and 12/30/1899 including the latter date<br />
Time := TimeStampToDateTime(TS);<br />
Result := True;<br />
end;<br />
end;</p>
<p>function TryEncodeDate(Year, Month, Day: Word; out Date: TDateTime): Boolean;<br />
var<br />
I: Integer;<br />
DayTable: PDayTable;<br />
begin<br />
Result := False;<br />
DayTable := @MonthDays[IsLeapYear(Year)];<br />
if (Year &gt;= 1) and (Year &lt;= 9999) and (Month &gt;= 1) and (Month &lt;= 12) and<br />
(Day &gt;= 1) and (Day &lt;= DayTable^[Month]) then<br />
begin<br />
for I := 1 to Month &#8211; 1 do Inc(Day, DayTable^[I]);<br />
I := Year &#8211; 1;<br />
Date := I * 365 + I div 4 &#8211; I div 100 + I div 400 + Day &#8211; DateDelta;<br />
Result := True;<br />
end;<br />
end;</p>
<p>function TryEncodeDateTime(const AYear, AMonth, ADay, AHour, AMinute, ASecond,<br />
AMilliSecond: Word; out AValue: TDateTime): Boolean;<br />
var<br />
LTime: TDateTime;<br />
begin<br />
Result := TryEncodeDate(AYear, AMonth, ADay, AValue);<br />
if Result then<br />
begin<br />
Result := TryEncodeTime(AHour, AMinute, ASecond, AMilliSecond, LTime);<br />
if Result then<br />
if AValue &gt;= 0 then<br />
AValue := AValue + LTime<br />
else<br />
AValue := AValue &#8211; LTime<br />
end;<br />
end;</p>
<p>procedure DecodeDateTime(const AValue: TDateTime; out AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond: Word);<br />
begin<br />
DecodeDate(AValue, AYear, AMonth, ADay);<br />
DecodeTime(AValue, AHour, AMinute, ASecond, AMilliSecond);<br />
end;</p>
<p>procedure IncAMonth(var Year, Month, Day: Word; NumberOfMonths: Integer = 1);<br />
var<br />
DayTable: PDayTable;<br />
Sign: Integer;<br />
begin<br />
if NumberOfMonths &gt;= 0 then Sign := 1 else Sign := -1;<br />
Year := Year + (NumberOfMonths div 12);<br />
NumberOfMonths := NumberOfMonths mod 12;<br />
Inc(Month, NumberOfMonths);<br />
if Word(Month-1) &gt; 11 then    // if Month &lt;= 0, word(Month-1) &gt; 11)<br />
begin<br />
Inc(Year, Sign);<br />
Inc(Month, -12 * Sign);<br />
end;<br />
DayTable := @MonthDays[IsLeapYear(Year)];<br />
if Day &gt; DayTable^[Month] then Day := DayTable^[Month];<br />
end;</p>
<p>function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer): TDateTime;<br />
var<br />
Year, Month, Day: Word;<br />
begin<br />
DecodeDate(DateTime, Year, Month, Day);<br />
IncAMonth(Year, Month, Day, NumberOfMonths);<br />
Result := EncodeDate(Year, Month, Day);<br />
ReplaceTime(Result, DateTime);<br />
end;</p>
<p>function DaysInMonth(const AValue: TDateTime): Word;<br />
var<br />
LYear, LMonth, LDay: Word;<br />
begin<br />
DecodeDate(AValue, LYear, LMonth, LDay);<br />
Result := DaysInAMonth(LYear, LMonth);<br />
end;</p>
<p>function DaysInAMonth(const AYear, AMonth: Word): Word;<br />
begin<br />
Result := MonthDays[(AMonth = 2) and IsLeapYear(AYear), AMonth];<br />
end;</p>
<p>function StartOfTheMonth(const AValue: TDateTime): TDateTime;<br />
var<br />
LYear, LMonth, LDay: Word;<br />
begin<br />
DecodeDate(AValue, LYear, LMonth, LDay);<br />
Result := EncodeDate(LYear, LMonth, 1);<br />
end;</p>
<p>function EndOfTheMonth(const AValue: TDateTime): TDateTime;<br />
var<br />
LYear, LMonth, LDay: Word;<br />
begin<br />
DecodeDate(AValue, LYear, LMonth, LDay);<br />
Result := EndOfTheDay(EncodeDate(LYear, LMonth, DaysInAMonth(LYear, LMonth)));<br />
end;</p>
<p>function StartOfTheWeek(const AValue: TDateTime): TDateTime;<br />
begin<br />
Result := Trunc(AValue) &#8211; (DayOfTheWeek(AValue) &#8211; 1);<br />
end;</p>
<p>function EndOfTheWeek(const AValue: TDateTime): TDateTime;<br />
begin<br />
Result := EndOfTheDay(StartOfTheWeek(AValue) + 6);<br />
end;</p>
<p>function StartOfTheDay(const AValue: TDateTime): TDateTime;<br />
begin<br />
Result := Trunc(AValue);<br />
end;</p>
<p>function DayOfTheWeek(const AValue: TDateTime): Word;<br />
begin<br />
Result := (DateTimeToTimeStamp(AValue).Date &#8211; 1) mod 7 + 1;<br />
end;</p>
<p>function EndOfTheDay(const AValue: TDateTime): TDateTime;<br />
begin<br />
Result := RecodeTime(AValue, 23, 59, 59, 999);<br />
end;</p>
<p>function RecodeTime(const AValue: TDateTime; const AHour, AMinute, ASecond,<br />
AMilliSecond: Word): TDateTime;<br />
begin<br />
Result := RecodeDateTime(AValue, RecodeLeaveFieldAsIs, RecodeLeaveFieldAsIs,<br />
RecodeLeaveFieldAsIs, AHour, AMinute, ASecond, AMilliSecond);<br />
end;</p>
<p>function RecodeDateTime(const AValue: TDateTime; const AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond: Word): TDateTime;<br />
begin<br />
if not TryRecodeDateTime(AValue, AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond, Result) then<br />
InvalidDateTimeError(AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond,<br />
AValue);<br />
end;</p>
<p>procedure InvalidDateTimeError(const AYear, AMonth, ADay, AHour, AMinute,<br />
ASecond, AMilliSecond: Word; const ABaseDate: TDateTime);<br />
function Translate(AOrig, AValue: Word): string;<br />
begin<br />
if AValue = RecodeLeaveFieldAsIs then<br />
if ABaseDate = 0 then<br />
Result := &#8216;?&#8217;<br />
else<br />
Result := IntToStr(AOrig)<br />
else<br />
Result := IntToStr(AValue);<br />
end;<br />
var<br />
LYear, LMonth, LDay, LHour, LMinute, LSecond, LMilliSecond: Word;<br />
begin<br />
DecodeDate(ABaseDate, LYear, LMonth, LDay);<br />
DecodeTime(ABaseDate, LHour, LMinute, LSecond, LMilliSecond);<br />
raise EConvertError.CreateFmt(SInvalidDateTime,<br />
[Translate(LYear, AYear) + '-' +<br />
Translate(LMonth, AMonth) + '-' +<br />
Translate(LDay, ADay) + ' ' +<br />
Translate(LHour, AHour) + ':' +<br />
Translate(LMinute, AMinute) + ':' +<br />
Translate(LSecond, ASecond) + '.' +<br />
Translate(LMilliSecond, AMilliSecond)]);<br />
end;</p>
<p>function TryRecodeDateTime(const AValue: TDateTime; const AYear, AMonth, ADay,<br />
AHour, AMinute, ASecond, AMilliSecond: Word; out AResult: TDateTime): Boolean;<br />
var<br />
LYear, LMonth, LDay, LHour, LMinute, LSecond, LMilliSecond: Word;<br />
begin<br />
DecodeDateTime(AValue, LYear, LMonth, LDay,<br />
LHour, LMinute, LSecond, LMilliSecond);<br />
if AYear &lt;&gt; RecodeLeaveFieldAsIs then LYear := AYear;<br />
if AMonth &lt;&gt; RecodeLeaveFieldAsIs then LMonth := AMonth;<br />
if ADay &lt;&gt; RecodeLeaveFieldAsIs then LDay := ADay;<br />
if AHour &lt;&gt; RecodeLeaveFieldAsIs then LHour := AHour;<br />
if AMinute &lt;&gt; RecodeLeaveFieldAsIs then LMinute := AMinute;<br />
if ASecond &lt;&gt; RecodeLeaveFieldAsIs then LSecond := ASecond;<br />
if AMilliSecond &lt;&gt; RecodeLeaveFieldAsIs then LMilliSecond := AMilliSecond;<br />
Result := TryEncodeDateTime(LYear, LMonth, LDay,<br />
LHour, LMinute, LSecond, LMilliSecond, AResult);<br />
end;</p>
<p>function DaysBetween(const ANow, AThen: TDateTime): Integer;<br />
begin<br />
Result := Trunc(DaySpan(ANow, AThen));<br />
end;</p>
<p>function DaySpan(const ANow, AThen: TDateTime): Double;<br />
begin<br />
Result := SpanOfNowAndThen(ANow, AThen);<br />
end;</p>
<p>function SpanOfNowAndThen(const ANow, AThen: TDateTime): TDateTime;<br />
begin<br />
if ANow &lt; AThen then<br />
Result := AThen &#8211; ANow<br />
else<br />
Result := ANow &#8211; AThen;<br />
end;</p>
<p>function DayOf(const AValue: TDateTime): Word;<br />
var<br />
LYear, LMonth: Word;<br />
begin<br />
DecodeDate(AValue, LYear, LMonth, Result);<br />
end;</p>
<p>function MonthOfTheYear(const AValue: TDateTime): Word;<br />
begin<br />
Result := MonthOf(AValue);<br />
end;</p>
<p>function MonthOf(const AValue: TDateTime): Word;<br />
var<br />
LYear, LDay: Word;<br />
begin<br />
DecodeDate(AValue, LYear, Result, LDay);<br />
end;</p>
<p>function YearOf(const AValue: TDateTime): Word;<br />
var<br />
LMonth, LDay: Word;<br />
begin<br />
DecodeDate(AValue, Result, LMonth, LDay);<br />
end;</p>
<p>function CurrentYear: Word;<br />
var<br />
LMonth, LDay: Word;<br />
begin<br />
DecodeDate(Date, Result, LMonth, LDay);<br />
end;</p>
<p>function Today: TDateTime;<br />
begin<br />
Result := Date;<br />
end;</p>
<p>function Yesterday: TDateTime;<br />
begin<br />
Result := Date &#8211; 1;<br />
end;</p>
<p>function Tomorrow: TDateTime;<br />
begin<br />
Result := Date + 1;<br />
end;</p>
<p>function IncYear(const Anow: TDateTime; Anos : integer): TDateTime;<br />
var<br />
LMonth, LDay, LYear: Word;<br />
begin<br />
DecodeDate(ANow, LYear, LMonth, LDay);<br />
lYear:=LYear+Anos;<br />
Result:=EncodeDate(LYear, LMonth, LDay);<br />
end;</p>
<p>function DiasUteis(mes,ano:Integer ):integer; // Dias Uteis de Um Mês Especifico<br />
var<br />
data : TDateTime;<br />
contador : Integer;<br />
begin<br />
data := StrToDate(&#8217;01/&#8217;+IntTOStr(mes)+&#8217;/'+IntToStr(ano));<br />
Contador := 0;<br />
while (MonthOf(data)= mes) do<br />
begin<br />
if ( DayOfWeek(data) in [2,3,4,5,6] ) then<br />
Inc(Contador);<br />
Data := Data + 1<br />
end;<br />
result := contador;<br />
end;</p>
<p>end.</p></blockquote>
<p>Espero ter ajudado.</p>
<p>Até a próxima.</p>
<p>Agradecimento a Márcio Torres pela função de contar os dias Ulteis no Mês.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=178&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2011/05/18/trabalhando-com-datas-no-delphi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Adicionar dados a Área de Transferência através do Delphi</title>
		<link>http://xucro.wordpress.com/2010/09/01/adicionar-dados-a-area-de-transferencia-atraves-do-delphi/</link>
		<comments>http://xucro.wordpress.com/2010/09/01/adicionar-dados-a-area-de-transferencia-atraves-do-delphi/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 19:53:51 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Área de Transferência]]></category>
		<category><![CDATA[Clipboard]]></category>
		<category><![CDATA[colar]]></category>
		<category><![CDATA[copiar]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[rotina]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=171</guid>
		<description><![CDATA[Usando a Área de Transferência através do Delphi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=171&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>Olá pessoal, postarei um simples exemplo de como copiar o conteudo de um edit e jogá-lo para a Área de Transferência.</p></blockquote>
<p>Para isso, devemos declarar no <em>uses</em> a <em>unit <strong>ClipBrd.</strong></em></p>
<p>Vamos ao exemplo:</p>
<p>Colocando o conteúdo de um edit na Área de Transferência</p>
<blockquote><p>Clipboard.asText := Edit1.Text;</p></blockquote>
<p>Colocando o conteúdo da Área de Transferência em um edit</p>
<blockquote><p>edit1.Text := Clipboar.asText;</p></blockquote>
<p>obs.:  antes de colocar o conteúdo da Área de Transferência em um edit, verifique se o conteúdo é um texto, para isso use:</p>
<blockquote><p>if Clipboard.HasFormat(CF_TEXT) then</p></blockquote>
<p>isto irá verificar se o conteúdo da Área de Transferência é um texto.</p>
<p>Espero ter ajudado, até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=171&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2010/09/01/adicionar-dados-a-area-de-transferencia-atraves-do-delphi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Retornando um fração do texto contida em um campo que amarzene texto</title>
		<link>http://xucro.wordpress.com/2010/07/23/retornando-um-fracao-do-texto-contida-em-um-campo-que-amarzene-texto/</link>
		<comments>http://xucro.wordpress.com/2010/07/23/retornando-um-fracao-do-texto-contida-em-um-campo-que-amarzene-texto/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 12:29:18 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[fração de texto]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[substring]]></category>
		<category><![CDATA[texto]]></category>
		<category><![CDATA[varchar]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=164</guid>
		<description><![CDATA[retornando substring em um campo blob ou outro campo que armazene texto.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=164&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Para retornar uma parte do texto de um campo blob (que esteja armazenando um texto, ex:um memo), basta usar o comando</p>
<blockquote><p>select substring(campo_blob,1,70) from tabela</p></blockquote>
<p>onde:</p>
<blockquote><p>campo_blob :  campo na tabela do tipo blob (ou outro que contenha o texto, varchar, char) onde armazena o texto;</p>
<p>1 : posição inicial do texto que quer retornar;</p>
<p>70 : quantidade de caractes que deseja retornar.</p></blockquote>
<p>Espero ter ajudado.</p>
<p>Até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=164&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2010/07/23/retornando-um-fracao-do-texto-contida-em-um-campo-que-amarzene-texto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Livro sobre Delphi 2010 Marco Cantu</title>
		<link>http://xucro.wordpress.com/2010/03/05/livro-sobre-delphi-2010-marco-cantu/</link>
		<comments>http://xucro.wordpress.com/2010/03/05/livro-sobre-delphi-2010-marco-cantu/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 14:30:27 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Cantu]]></category>
		<category><![CDATA[Delphi 2010]]></category>
		<category><![CDATA[Embarcadero]]></category>
		<category><![CDATA[handbook]]></category>
		<category><![CDATA[Livro]]></category>
		<category><![CDATA[Marco Cantu]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=159</guid>
		<description><![CDATA[Marco Cantu disponibilizou hoje (05/03/2010) seu novo livro Delphi 2010 Handbook no site da embarcadero. Para baixar, tem que ser usuário registrado na embarcadero. o link para o livro no site da embarcadero é Delphi 2010 Handbook link para o livro 4shared Delphi 2010 Handbook até.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=159&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Marco Cantu disponibilizou hoje (05/03/2010) seu novo livro <em>Delphi 2010 Handbook</em> no site da embarcadero.</p>
<p>Para baixar, tem que ser usuário registrado na embarcadero.</p>
<p>o link para o livro no site da embarcadero é</p>
<p><a title="Delphi 2010 Handbook" href="http://cc.embarcadero.com/item/27613" target="_blank">Delphi 2010 Handbook</a></p>
<p>link para o livro 4shared</p>
<p><a title="Delphi 2010 Handbook" href="http://www.4shared.com/document/6VIEm7BQ/Delphi2010eHandbook.html" target="_blank">Delphi 2010 Handbook</a></p>
<p>até.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=159&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2010/03/05/livro-sobre-delphi-2010-marco-cantu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Vídeos Delphi Conference OnLine</title>
		<link>http://xucro.wordpress.com/2010/02/26/videos-delphi-conference-online/</link>
		<comments>http://xucro.wordpress.com/2010/02/26/videos-delphi-conference-online/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:22:15 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[apresentação]]></category>
		<category><![CDATA[curso]]></category>
		<category><![CDATA[Delphi 2010]]></category>
		<category><![CDATA[Delphi Conference]]></category>
		<category><![CDATA[Embarcadero]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[vídeos]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=157</guid>
		<description><![CDATA[Foi disponibilizado as apresntações do Delphi Conference OnLine ocorrido no dia 25/02/2010, aos interessaados, o link segue logo a baixo: Delphi Conference Online Até a próxima.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=157&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Foi disponibilizado as apresntações do Delphi Conference OnLine ocorrido no dia 25/02/2010, aos interessaados, o link segue logo a baixo:</p>
<p><a title="Delphi Conference Online" href="http://edn.embarcadero.com/br/article/40335" target="_blank">Delphi Conference Online</a></p>
<p>Até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=157&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2010/02/26/videos-delphi-conference-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
		<item>
		<title>Busca entre 2 parâmetros</title>
		<link>http://xucro.wordpress.com/2010/02/08/busca-entre-2-parametros/</link>
		<comments>http://xucro.wordpress.com/2010/02/08/busca-entre-2-parametros/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:21:10 +0000</pubDate>
		<dc:creator>Rodrigo Andrade</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[>=]]></category>
		<category><![CDATA[<=]]></category>
		<category><![CDATA[=]]></category>
		<category><![CDATA[banco de dados]]></category>
		<category><![CDATA[between]]></category>
		<category><![CDATA[entre valores]]></category>
		<category><![CDATA[função]]></category>
		<category><![CDATA[valores]]></category>

		<guid isPermaLink="false">http://xucro.wordpress.com/?p=154</guid>
		<description><![CDATA[Olá pessoal, postarei como realizar uma busca entre 2 parâmetros. Ao usar o tradicional select campo from tabela where valor &#60;= paramentro and valor &#62;= parametro, podemos usar a função between. A função between serve para compara se um valor esta dentro da faixa de valores desejada. Ex.: para saber se um valor esta ente [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=154&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Olá pessoal, postarei como realizar uma busca entre 2 parâmetros.</p>
<p>Ao usar o tradicional select campo from tabela where valor &lt;= paramentro and valor &gt;= parametro, podemos usar a função <em>between</em>.</p>
<p>A função <em>between</em> serve para compara se um valor esta dentro da faixa de valores desejada.</p>
<p>Ex.:</p>
<blockquote><p>para saber se um valor esta ente os números 100 e 150 basta fazer</p>
<p>SELECT CAMPO FROM TABELA WHERE VALOR BETWEEN 100 AND 150.</p></blockquote>
<p>E só para ressaltar, o between serve tanto para números, como para datas e strings.</p>
<p>Espero ter ajudado.</p>
<p>Até a próxima.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucro.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucro.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucro.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucro.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucro.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucro.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucro.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucro.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucro.wordpress.com&amp;blog=6572472&amp;post=154&amp;subd=xucro&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucro.wordpress.com/2010/02/08/busca-entre-2-parametros/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c163ed28df85bb0236c722c7e0b25463?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Rodrigo Andrade</media:title>
		</media:content>
	</item>
	</channel>
</rss>
