<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4636861792553932297</id><updated>2025-09-06T17:44:27.472-07:00</updated><category term="Csharp/SqlServer"/><category term="Delphi/SqlServer"/><category term="Delphi/Firebird"/><category term="Data Sience"/><title type='text'>PROGRAMAR É SIMPLES !!!</title><subtitle type='html'>Esse blog é destinado a pessoas que estejam começando na área de programação, postarei aqui coisas que aprendi, coisas que tive dificuldades em encontrar e novidades da área, principalmente nas linguagens Delphi e Csharp.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-2006644826275942379</id><published>2025-01-09T15:27:00.000-08:00</published><updated>2025-01-09T15:27:02.243-08:00</updated><title type='text'>Seu primeiro código de Machine Learning</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Se você está começando a se interessar em Machine Leraning e gostaria de fazer um &quot;Hello World&quot;, chegou ao lugar certo. Nesse post vamos utilizar a linguagem Python para criar um modelo para&amp;nbsp; classificar flores usando o famoso conjunto de dados Iris.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Sem muita lenga lenga, vamos colocar a mão na massa.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Primeiro vamos importar as bibliotecas e carregar o conjunto de dados:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span class=&quot;hljs-comment&quot;&gt;# Importando bibliotecas&lt;/span&gt;
&lt;span class=&quot;hljs-keyword&quot;&gt;from&lt;/span&gt; sklearn.datasets&lt;/b&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;from&lt;/span&gt; sklearn.datasets &lt;span class=&quot;hljs-keyword&quot;&gt;import&lt;/span&gt; load_iris&lt;br /&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;from&lt;/span&gt; sklearn.model_selection &lt;span class=&quot;hljs-keyword&quot;&gt;import&lt;/span&gt; train_test_split&amp;nbsp;&lt;br /&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;from&lt;/span&gt; sklearn.ensemble &lt;span class=&quot;hljs-keyword&quot;&gt;import&lt;/span&gt; RandomForestClassifier&amp;nbsp;&lt;br /&gt;&lt;span class=&quot;hljs-keyword&quot;&gt;from&lt;/span&gt; sklearn.metrics &lt;span class=&quot;hljs-keyword&quot;&gt;import&lt;/span&gt; accuracy_score&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;# Carregar o conjunto de dados Iris&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;iris = load_iris()&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;X = iris.data&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;y = iris.target&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Depois vamos dividir o conjunto de dados em 2 partes, uma para treinar o modelo e outra para testar o modelo:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;# Dividindo o conjunto de dados em treino e teste&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=&lt;span class=&quot;hljs-number&quot;&gt;0.3&lt;/span&gt;, random_state=&lt;span class=&quot;hljs-number&quot;&gt;42&lt;/span&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Agora com os o conjunto de dados dividido, vamos criar um modelo de &lt;i&gt;Random Forest&lt;/i&gt; e treinar.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;# Criar o modelo de Random Forest&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;
model = RandomForestClassifier(random_state=&lt;span class=&quot;hljs-number&quot;&gt;42&lt;/span&gt;)&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;span class=&quot;hljs-comment&quot;&gt;# Treinar o modelo&lt;/span&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6; font-family: helvetica;&quot;&gt;&lt;i&gt;model.fit(X_train, y_train)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Com isso nosso modelo já está apto para fazer previsões:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;# Fazer previsões&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;y_pred = model.predict(X_test)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;# Avaliar a precisão do modelo&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;
accuracy = accuracy_score(y_test, y_pred)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;# Mostrar resultados&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;hljs-comment&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;hljs-built_in&quot;&gt;print&lt;/span&gt;(&lt;span class=&quot;hljs-string&quot;&gt;f&quot;Precisão do modelo: &lt;span class=&quot;hljs-subst&quot;&gt;{accuracy:&lt;span class=&quot;hljs-number&quot;&gt;.2&lt;/span&gt;f}&lt;/span&gt;&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;hljs-built_in&quot;&gt;print&lt;/span&gt;(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Classes previstas para o conjunto de teste:&quot;&lt;/span&gt;, y_pred)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;hljs-built_in&quot;&gt;print&lt;/span&gt;(&lt;span class=&quot;hljs-string&quot;&gt;&quot;Classes reais do conjunto de teste:&quot;&lt;/span&gt;, y_test)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;=============================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Como rodar este código:&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Certifique-se de ter Python instalado.&lt;/li&gt;&lt;li&gt;Instale o &lt;code&gt;scikit-learn&lt;/code&gt; com &lt;code&gt;pip install scikit-learn&lt;/code&gt;.&lt;/li&gt;&lt;li&gt;Cole o código em um arquivo &lt;code&gt;.py&lt;/code&gt; ou use um ambiente como Jupyter Notebook.&lt;/li&gt;&lt;li&gt;Execute o arquivo.&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Conclusão&lt;/h3&gt;&lt;div&gt;Com poucas linhas de código é possível começar a brincadeira com Machine Learning, esse é só o ponto de partida, hoje em dia tem muito conteúdo disponível na internet para aprender mais sobre o assunto e quem sabe seguir essa carreira tão legal e promissora.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Espero ter ajudado alguém, e até mais...&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/2006644826275942379/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2025/01/seu-primeiro-codigo-de-machine-learning.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2006644826275942379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2006644826275942379'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2025/01/seu-primeiro-codigo-de-machine-learning.html' title='Seu primeiro código de Machine Learning'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-652238733446172447</id><published>2025-01-08T08:56:00.000-08:00</published><updated>2025-01-08T08:56:03.312-08:00</updated><title type='text'>Desvendando o Machine Learning: Um Guia para Iniciantes</title><content type='html'>&lt;p&gt;&amp;nbsp;Você já se perguntou como funcionam os carros autônomos, como as redes sociais sabem o que você quer ver ou como as assistentes virtuais entendem o que você fala? A resposta para essas perguntas está no Machine Learning, uma área fascinante da tecnologia que está mudando o mundo.&lt;/p&gt;&lt;p&gt;Neste artigo, vamos explorar o que é Machine Learning, como ele funciona e exemplos práticos que mostram sua aplicação no dia a dia.&lt;/p&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;O que é Machine Learning?&lt;/h2&gt;&lt;div&gt;&lt;div&gt;Machine Learning, ou Aprendizado de Máquina, é um campo da inteligência artificial (IA) que permite que sistemas aprendam e melhorem automaticamente com a experiência, sem serem explicitamente programados. Isso significa que, em vez de depender de regras codificadas manualmente, os computadores usam dados para identificar padrões, fazer previsões e tomar decisões.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Existem três principais categorias de Machine Learning:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Aprendizado Supervisionado: O sistema é treinado com dados rotulados. Por exemplo, ensinar um modelo a classificar e-mails como &quot;spam&quot; ou &quot;não spam&quot;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Aprendizado Não Supervisionado: O sistema analisa dados não rotulados para encontrar padrões. Por exemplo, agrupar clientes com base em comportamentos semelhantes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Aprendizado por Reforço: O sistema aprende através de tentativa e erro, recebendo recompensas ou penalidades. É usado em robótica e jogos.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;Como Machine Learning Funciona?&lt;/h2&gt;&lt;div&gt;&lt;div&gt;O processo de Machine Learning pode ser dividido em etapas principais:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Coleta de Dados: Tudo começa com a obtenção de dados relevantes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Preparar os Dados: Isso inclui limpar, organizar e transformar os dados para torná-los utilizáveis.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Escolher um Modelo: Selecionar o algoritmo certo com base no problema (por exemplo, regressão linear, redes neurais ou árvores de decisão).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Treinar o Modelo: Usar dados para ensinar o modelo a fazer previsões.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Avaliar o Modelo: Testar a precisão do modelo com novos dados.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Melhorar o Modelo: Ajustar parâmetros e treinar novamente para obter melhores resultados.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;Exemplos de Machine Learning na Prática&lt;/h2&gt;&lt;div&gt;&lt;div&gt;Aqui estão alguns exemplos que mostram como o Machine Learning impacta nossas vidas:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Assistentes Virtuais: Como Alexa, Siri e Google Assistant, que usam processamento de linguagem natural para entender comandos de voz.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Diagnóstico Médico: Sistemas de aprendizado de máquina ajudam a identificar câncer em imagens de raio-X com alta precisão.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Reconhecimento Facial: Tecnologias que identificam rostos em fotos ou vídeos, usadas em segurança e redes sociais.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Carros Autônomos: Veículos que tomam decisões em tempo real com base em sensores e câmeras.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Previsão de Fraudes: Bancos e empresas usam Machine Learning para detectar transações suspeitas.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;Por que aprender Machine Learning?&lt;/h2&gt;&lt;div&gt;&lt;div&gt;Machine Learning é uma das áreas mais promissoras da tecnologia. Com o crescimento de dados e poder computacional, as oportunidades são praticamente ilimitadas. Aprender Machine Learning pode levar a uma carreira empolgante e bem remunerada em setores como tecnologia, saúde, finanças e muito mais.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Para iniciantes, aqui estão algumas dicas:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Comece aprendendo uma linguagem de programação como Python, muito usada em Machine Learning.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Explore bibliotecas e ferramentas populares como TensorFlow, PyTorch e scikit-learn.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Experimente com projetos simples, como criar um modelo para prever preços de casas.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;Conclusão&lt;/h2&gt;&lt;div&gt;&lt;div&gt;Machine Learning está transformando o mundo e criando soluções inovadoras para problemas complexos. Seja você um entusiasta da tecnologia ou um profissional em busca de uma nova área de especialização, aprender Machine Learning é um passo emocionante.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pronto para começar? Explore tutoriais, cursos e desafios de aprendizado de máquina. O futuro da tecnologia está em suas mãos!&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/652238733446172447/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2025/01/desvendando-o-machine-learning-um-guia.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/652238733446172447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/652238733446172447'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2025/01/desvendando-o-machine-learning-um-guia.html' title='Desvendando o Machine Learning: Um Guia para Iniciantes'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-378695932443189496</id><published>2025-01-07T14:16:00.000-08:00</published><updated>2025-01-07T14:16:59.548-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Sience"/><title type='text'>Explorando o Mundo da Data Science: Um Guia para Iniciantes</title><content type='html'>&lt;p&gt;Se você é curioso sobre como as empresas tomam decisões inteligentes baseadas em dados ou como as recomendações de filmes e músicas funcionam, bem-vindo ao mundo da Data Science! Este campo incrivelmente dinâmico combina matemática, estatística, ciência da computação e criatividade para extrair conhecimento e insights a partir de dados.&lt;/p&gt;&lt;p&gt;Neste post, vamos explorar o que é Data Science, como ela está mudando o mundo ao nosso redor e exemplos práticos que mostram sua aplicação em nosso dia a dia.&lt;/p&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;O que é Data Science?&lt;/strong&gt;&lt;/h2&gt;&lt;p data-pm-slice=&quot;1 3 []&quot;&gt;Data Science, ou Ciência de Dados, é um campo interdisciplinar que utiliza dados para resolver problemas complexos e responder perguntas importantes. Ela abrange a coleta, organização, análise e interpretação de grandes volumes de informação.&lt;/p&gt;&lt;p&gt;Uma das principais características da Data Science é sua flexibilidade. Dependendo do problema, você pode usar técnicas de:&lt;/p&gt;&lt;ul data-spread=&quot;false&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Estatística&lt;/strong&gt;: Para entender tendências e padrões.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Machine Learning&lt;/strong&gt;: Para criar modelos preditivos automatizados.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Visualização de Dados&lt;/strong&gt;: Para apresentar insights de forma clara e impactante.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;Exemplos de Aplicações da Data Science&lt;/strong&gt;&lt;/h2&gt;&lt;ol data-pm-slice=&quot;3 3 []&quot; data-spread=&quot;true&quot; start=&quot;1&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Saúde&lt;/strong&gt;: Modelos de Data Science ajudam médicos a prever surtos de doenças, diagnosticar com maior precisão e personalizar tratamentos.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;E-commerce&lt;/strong&gt;: Ferramentas baseadas em dados analisam seu histórico de compras e comportamento online para oferecer produtos que você pode estar interessado em adquirir.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Entretenimento&lt;/strong&gt;: Plataformas como Netflix e Spotify usam algoritmos para sugerir filmes e músicas que você provavelmente vai adorar.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Esportes&lt;/strong&gt;: Times utilizam análise de dados para criar estratégias vencedoras e avaliar o desempenho dos jogadores.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;Por que aprender Data Science?&lt;/strong&gt;&lt;/h2&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;Data Science não é apenas uma tendência; é uma habilidade essencial em um mundo cada vez mais orientado por dados. Aprender Data Science pode abrir portas para uma carreira empolgante, seja em tecnologia, marketing, finanças, saúde ou mesmo em áreas criativas.&lt;/p&gt;&lt;p&gt;Para iniciantes, é importante começar com o básico:&lt;/p&gt;&lt;ul data-spread=&quot;false&quot;&gt;&lt;li&gt;&lt;p&gt;Familiarize-se com &lt;strong&gt;linguagens de programação&lt;/strong&gt; como Python ou R.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Aprenda &lt;strong&gt;estatística e probabilidade&lt;/strong&gt; para entender as bases matemáticas.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Pratique com &lt;strong&gt;projetos simples&lt;/strong&gt;, como análise de dados de vendas ou criação de visualizações.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;Conclusão&lt;/strong&gt;&lt;/h2&gt;&lt;/div&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Data Science é uma ferramenta poderosa que permite transformar dados brutos em soluções reais para problemas complexos. Se você tem curiosidade e vontade de aprender, este campo oferece infinitas possibilidades de crescimento pessoal e profissional.&lt;/p&gt;&lt;p&gt;Pronto para dar o primeiro passo? Comece explorando recursos gratuitos online, como cursos, blogs e desafios de análise de dados. O mundo da Data Science está esperando por você!&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/378695932443189496/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2025/01/explorando-o-mundo-da-data-science-um.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/378695932443189496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/378695932443189496'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2025/01/explorando-o-mundo-da-data-science-um.html' title='Explorando o Mundo da Data Science: Um Guia para Iniciantes'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-104648085069807586</id><published>2013-08-08T16:09:00.001-07:00</published><updated>2013-08-08T16:09:29.828-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>XML no SQL Server</title><content type='html'>&lt;div class=&quot;titulon2&quot; style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;_GoBack&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Usando OPENXML &lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;titulon2&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;O método escolhido
pelo SQL Server 2000 para permitir modificações em dados usando documentos XML
é usando o &lt;em&gt;data source&lt;/em&gt;
OPENXML. Esta função prove a visualização dos dados em &lt;em&gt;rowset.&lt;/em&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;Para usar o &lt;em&gt;data source&lt;/em&gt; XML com
T-SQL, o documento precisa ser validado e armazenado na memória em uma
representação de árvore. Esta árvore representa as informações de cada &lt;em&gt;nodo&lt;/em&gt; que o SQL Server
2000 terá que saber para preparar a linha de leitura. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;No SQL Server 2000
existe uma &lt;em&gt;stored
procedure&lt;/em&gt;, chamada sp_xml_preparedocument, que irá converter o
documento XML para ser representado internamente pelo SQL Server 2000. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;titulon2&quot; style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;titulon2&quot; style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;SP_XML_PREPAREDOCUMENT&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;O OPENXML não pode
trabalhar com uma string formatada em XML. O OPENXML vai ler os dados já
devidamente formatados, pode ele não interpreta a estrutura de nodos. Por este
motivo usamos o SP_XML_PREPAREDOCUMENT para converter o documento em um padrão
que o SQL Server 2000 possa ler e interpretar. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;Esta &lt;em&gt;stored procedure&lt;/em&gt; cria
uma representação temporária na memória com o formato de uma &lt;em&gt;view&lt;/em&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;A figura abaixo
exibe uma estrutura de um documento XML usado em nosso exemplo. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm1kmkJHDTmgTa7n3MQdXoAGe21vm7nAzRINuZhK2OUFF1IaYjDSa2nPIbbAf0e6ri9m7XxyvnWY1f3G1VSErF1Hzq0m9F1RljHmpCYnwZcSr8ujoW73jCBoNOa73KCf1gwJ4OrIIn7TA/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm1kmkJHDTmgTa7n3MQdXoAGe21vm7nAzRINuZhK2OUFF1IaYjDSa2nPIbbAf0e6ri9m7XxyvnWY1f3G1VSErF1Hzq0m9F1RljHmpCYnwZcSr8ujoW73jCBoNOa73KCf1gwJ4OrIIn7TA/s1600/img1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;Já a figura abaixo
mostra como o SQL Server lê as informações depois que o documento passar pela &lt;em&gt;stored procedure &lt;/em&gt;SP_XML_PREPAREDOCUMENT.
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn0CIHbkPqjVB1cdVf_w6f3wkQWrotiF77ZINJkI4jFfJ6zEsx2eCOeFXE5EPu3hZlN_5DK5KVAjkAQzmNZJZokua7CM73o27qsOo-04rut4dDLbytF1Jt7Ia_N7CHurJXE_KECKQZ10A/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn0CIHbkPqjVB1cdVf_w6f3wkQWrotiF77ZINJkI4jFfJ6zEsx2eCOeFXE5EPu3hZlN_5DK5KVAjkAQzmNZJZokua7CM73o27qsOo-04rut4dDLbytF1Jt7Ia_N7CHurJXE_KECKQZ10A/s1600/img2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;Segue a baixo o
codigo para fazer a importação dos dados. &lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;O código abaixo
mostra como fazer uma importação do conteúdo XML para dentro de uma tabela
temporária chamada #funcionario, a partir desta tabela é só copiar os dados de
uma tabela do SQL Server para outra tabela. Não existe mistério nisso. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;Segue durante o
código o comentário de cada linha e comandos do SQL Server.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglQRY9NbwyJElgen5AY01J9HmgvjKrbgblM0ob32KmNudSARQMDAMhJmmgRGjLlfkG9JNP-_NxWfHZtnrIirZ1mLIpW9Ky0ri67hvhOUetbpoQourFUfR2n-ihRpMOrMmv6OJSqvSBtUY/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglQRY9NbwyJElgen5AY01J9HmgvjKrbgblM0ob32KmNudSARQMDAMhJmmgRGjLlfkG9JNP-_NxWfHZtnrIirZ1mLIpW9Ky0ri67hvhOUetbpoQourFUfR2n-ihRpMOrMmv6OJSqvSBtUY/s640/img3.jpg&quot; width=&quot;408&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;Observação: nunca esqueça que é muito
importante remover o conteúdo do documento XML da memória.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;bom pessoal espero que tenha ajudado alguém, e como sempre !!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt;&quot;&gt;clica, clica, clica...rsrsrs&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/104648085069807586/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/08/xml-no-sql-server.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/104648085069807586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/104648085069807586'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/08/xml-no-sql-server.html' title='XML no SQL Server'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm1kmkJHDTmgTa7n3MQdXoAGe21vm7nAzRINuZhK2OUFF1IaYjDSa2nPIbbAf0e6ri9m7XxyvnWY1f3G1VSErF1Hzq0m9F1RljHmpCYnwZcSr8ujoW73jCBoNOa73KCf1gwJ4OrIIn7TA/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-1228630806967802787</id><published>2013-07-22T09:54:00.002-07:00</published><updated>2013-07-22T09:54:48.407-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Cursores SQL Server</title><content type='html'>Boa tarde a todos,&lt;br /&gt;
vamos aprender hoje um pouco sobre cursores no SQL Server, uma ferramenta muito boa, que soluciona varios problemas, mas dependendo da situação pode ser custosa, então antes de usar analise bem se é realmente necessário.&lt;br /&gt;
&lt;br /&gt;
Entendendo os Cursores&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
O SQL Server suporta dois tipos de cursores: os cursores T-SQL e os cursores API (Application Programming Interface). Neste artigo falarei dos cursores do tipo T-SQL, isso porque para utilizarmos um cursor API teremos que ter a documentação apropriada de cada API que será utilizada, ou seja, os cursores do tipo API são específicos de cada API.&lt;br /&gt;
&lt;br /&gt;
Os cursores T-SQL são criados usando o comando DECLARE CURSOR. Quando estamos utilizando um cursor a partir de uma aplicação conectada a um servidor Microsoft SQL Server, cada operação no cursor requer uma viagem de ida e volta através da rede.&lt;br /&gt;
&lt;br /&gt;
O conjunto de linhas para o qual um cursor aponta é definido pelo comando SELECT. Existem algumas restrições SELECT ao se criar um cursor T-SQL:&lt;br /&gt;
&lt;br /&gt;
. Não poderá retornar vários conjuntos de linhas. &lt;br /&gt;
&lt;br /&gt;
. Não poderá conter a cláusula INTO para criar uma nova tabela. &lt;br /&gt;
&lt;br /&gt;
. Não poderá conter a cláusulas COMPUTE ou COMPUTE BY, contudo poderá conter funções agregadas, tais como AVG. &lt;br /&gt;
&lt;br /&gt;
Vamos analisar algumas características dos cursores e para não confundir muito dividirei em três grupos de cursores pelas suas características: &lt;br /&gt;
&lt;br /&gt;
. Capacidade de refletir alterações em dados subjacentes. &lt;br /&gt;
&lt;br /&gt;
. Capacidade de rolar pelo conjunto de linhas. &lt;br /&gt;
&lt;br /&gt;
. Capacidade de atualizar o conjunto de linhas. &lt;br /&gt;
&lt;br /&gt;
Refletindo alterações&lt;br /&gt;
&lt;br /&gt;
Se criarmos um cursor com a instrução abaixo:&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM rg_cidade WHERE nmcidade LIKE &#39;%i%&#39; &lt;br /&gt;
&lt;br /&gt;
O banco de dados irá retornar algo similar à imagem abaixo. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxTL1hqX2V5zVzZ-wLwTeCKiI1XcpkHc-ILwpooaREIQgpjRGWmWJXE_NADdJ-tVM0FdjTGG9KHmApeS46Ys_8LZDeQgTHxwzBdWnub0qd_1q4r-ULN_ZUIS6qn_SNiK3LASBxXZvdgEs/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img bba=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxTL1hqX2V5zVzZ-wLwTeCKiI1XcpkHc-ILwpooaREIQgpjRGWmWJXE_NADdJ-tVM0FdjTGG9KHmApeS46Ys_8LZDeQgTHxwzBdWnub0qd_1q4r-ULN_ZUIS6qn_SNiK3LASBxXZvdgEs/s1600/img1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;Imagine se alguém alterar a linha do registro ‘Farroupilha’ o que acontecerá com o conjunto de dados &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;apontados pelo cursor?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;Existem dois tipos de reflexos que podem ser determinados separadamente quando você criar o seu cursor:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
. Alterações nas quais as linhas estejam incluídas no conjunto &lt;br /&gt;
&lt;br /&gt;
. Alterações nos valores das linhas subjacentes. &lt;br /&gt;
&lt;br /&gt;
Rolagem&lt;br /&gt;
&lt;br /&gt;
Outra característica é se você poderá utilizar o cursor para rolar para frente e para trás ou somente para frente. Aqui encontraremos o velho dilema velocidade X flexibilidade. Os cursores que vão apenas para frente são significativamente mais rápidos, mas menos flexíveis.&lt;br /&gt;
&lt;br /&gt;
Atualização &lt;br /&gt;
&lt;br /&gt;
Por último, é se as linhas podem ser atualizadas pelo cursor. Mais uma vez, os cursores de somente leitura geralmente são mais eficientes, porem menos flexíveis.&lt;br /&gt;
&lt;br /&gt;
Tipo de cursor&lt;br /&gt;
&lt;br /&gt;
O T-SQL suporta quatro tipos de cursor diferentes: &lt;br /&gt;
&lt;br /&gt;
. Static &lt;br /&gt;
&lt;br /&gt;
. Keyset &lt;br /&gt;
&lt;br /&gt;
. Dynamic &lt;br /&gt;
&lt;br /&gt;
. Firehose &lt;br /&gt;
&lt;br /&gt;
Cada tipo de cursor armazena os dados de maneira diferente e cada um suporta diferentes tipos de combinações de características descritas anteriormente. Veja a descrição de cada tipo de cursor abaixo:&lt;br /&gt;
&lt;br /&gt;
Static: os cursores static fazem uma cópia dos dados especificados pela instrução SELECT e a armazena no banco de dados tempdb. Este tipo de cursor não permite alterações nos valores de associação ou dados, como qualquer atualização refletiria apenas uma cópia, este tipo é sempre somente leitura. Static podem, contudo ser declarados como forward-only (apenas para frente) ou scrollable (roláveis).&lt;br /&gt;
&lt;br /&gt;
Keyset: um cursor keyset copia para o tempdb apenas as colunas necessárias para identificar exclusivamente cada linha. Para declarar um cursor deste tipo, cada tabela envolvida na instrução SELECT de definição deverá ter um índice exclusivo que defina o conjunto de chaves a ser copiado.&lt;br /&gt;
&lt;br /&gt;
Os cursores keyset podem ser updatable (atualizáveis) ou read-only (somente-leitura) e também scrollable (roláveis) ou forward-only (apenas para frente).&lt;br /&gt;
&lt;br /&gt;
Um cursor keyset é fixado quando você declara o cursor. Se uma linha que satisfaça as condições selecionadas for adicionada enquanto o cursor estiver aberto ela não será adicionada ao conjunto de dados.&lt;br /&gt;
&lt;br /&gt;
Embora a associação na definição do cursor seja fixada quando você abre o cursor, as alterações aos valores de dados nas tabelas subjacentes geralmente são refletidas. Por exemplo, as alterações para o valor nmcidade da linha “Farroupilha” seriam retornadas pelo cursor. As alterações para os valores definidos por chaves, contudo refletirão no cursor apenas se forem feitas pelo cursor. Para continuar o exemplo anterior, se o valor fosse alterado pelo cursor, este retornaria, então, o valor alterado. Porém, se a alteração fosse feita por outro usuário, este cursor continuará retornando o valor anterior.&lt;br /&gt;
&lt;br /&gt;
Dynamic: um cursor dynamic comporta-se como se uma instrução SELECT fosse lançada novamente sempre que uma linha fosse referenciada. Os cursores Dynamic refletem as alterações de valor tanto da associação quanto dos dados subjacentes, quer essas alterações tenham sido feitas pelo cursor ou por qualquer outro usuário.&lt;br /&gt;
&lt;br /&gt;
Firehose: Esse tipo de cursor é declarado usando FAST_FORWARD, mas é mais conhecido como um cursor firehose. Existem duas restrições importantes quanto ao seu uso. &lt;br /&gt;
&lt;br /&gt;
. Se a instrução SELECT que define o cursor faz referencia a colunas do tipo text, ntext ou image e contiver a cláusula TOP, o SQL Server converterá o cursor firehose em um cursor keyset.&lt;br /&gt;
&lt;br /&gt;
. Se a instrução SELECT combinar tabelas que contenham triggers o cursor será convertido para static. &lt;br /&gt;
&lt;br /&gt;
Criando cursores&lt;br /&gt;
&lt;br /&gt;
Para criar um cursor, utilizamos a instrução DECLARE CURSOR. A sintaxe da instrução DECLARE CURSOR copiada do Books Online é: 
&amp;nbsp; 
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyRw0_vz0JxoEq52KpKwT600BPf_vmw45QSJ_fdspSZCNjsxfBehXiJFGOVbuuxMnwStGEAFXaWATbp7kXhgPVAFovVrnRuCvw0-mbeL1AaJfYCUkI9rrdqABbJTEE6KSzWWsh3q-phqs/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img bba=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyRw0_vz0JxoEq52KpKwT600BPf_vmw45QSJ_fdspSZCNjsxfBehXiJFGOVbuuxMnwStGEAFXaWATbp7kXhgPVAFovVrnRuCvw0-mbeL1AaJfYCUkI9rrdqABbJTEE6KSzWWsh3q-phqs/s1600/img2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
Veja abaixo a explicação para cada linha da instrução acima: 
&lt;br /&gt;
&lt;br /&gt;
01. É usado para definir o escopo do cursor assim como funciona em tabelas temporárias (@local ou @@global). &lt;br /&gt;
&lt;br /&gt;
02. Indica a rolagem a ser definida para o cursor e aceita as palavras-chaves: FORWARD_ONLY e SCROLL. &lt;br /&gt;
&lt;br /&gt;
03. Usado para definir o tipo do cursor a ser criado: STATIC, KEYSET, DYNAMIC e FAST_FORWARD. &lt;br /&gt;
&lt;br /&gt;
04. Indica o tipo de bloqueio, se as linhas poderão ser atualizadas pelo cursor e, se assim for, se outros usuários também poderão atualizá-los. &lt;br /&gt;
&lt;br /&gt;
05. Este parâmetro instrui o SQL Server para enviar uma mensagem de aviso para o cliente se um cursor for convertido do tipo especificado em outro tipo. &lt;br /&gt;
&lt;br /&gt;
06. Específica às linhas a serem incluídas no conjunto do cursor. &lt;br /&gt;
&lt;br /&gt;
07. Este parâmetro é opcional, por padrão os cursores são atualizáveis a não ser que o parâmetro de bloqueio seja READ_ONLY. Neste parâmetro podem-se especificar as linhas que permitem a atualização. Se forem omitidas todas as colunas na instrução serão atualizáveis. &lt;br /&gt;
&lt;br /&gt;
Variáveis de cursor&lt;br /&gt;
&lt;br /&gt;
O T-SQL permite declarar variáveis do tipo CURSOR. A sintaxe DECLARE padrão não cria o cursor, para isso use o SET a variável explicitamente. Este tipo de sintaxe é útil quando desejamos criar variáveis que possam ser atribuídas a diferentes cursores, o que poderá fazer se criar um procedimento genérico que opere em vários conjuntos de resultados.&lt;br /&gt;
&lt;br /&gt;
Abrir um cursor&lt;br /&gt;
&lt;br /&gt;
A declaração de um cursor cria um objeto cursor, mas não cria o conjunto de linhas que serão manipuladas pelo cursor. O conjunto do cursor não será criado até que se abra o cursor.&lt;br /&gt;
&lt;br /&gt;
OPEN [GLOBAL] cursor_ou_variável&lt;br /&gt;
&lt;br /&gt;
Feche um cursor &lt;br /&gt;
&lt;br /&gt;
Após ter terminado de usar um cursor, devemos fechá-lo. A instrução CLOSE libera os recursos usados para manter o conjunto do cursor e também liberta quaisquer bloqueios que tenham sido colocados nas linhas se tiver usado parâmetros como: SCROLLOCKS.&lt;br /&gt;
&lt;br /&gt;
CLOSE [GLOBAL] cursor_ou_variável&lt;br /&gt;
&lt;br /&gt;
Desalocar um cursor&lt;br /&gt;
&lt;br /&gt;
Na seqüência de criação de um cursor o DEALLOCATE é o último comando. Sua sintaxe é parecida com os comandos anteriores:&lt;br /&gt;
&lt;br /&gt;
DEALLOCATE [GLOBAL] cursor_ou_variável&lt;br /&gt;
&lt;br /&gt;
Este comando remove o identificador do cursor e não o cursor ou variável. O cursor não será removido até que os identificadores sejam desalocados ou fiquem&amp;nbsp; fora do escopo. 
&amp;nbsp; 
Manipulando linhas com um cursor 
&lt;br /&gt;
&lt;br /&gt;
O T-SQL suporta três comandos diferentes para trabalhar com cursores: FETCH, UPDATE e DELETE.&lt;br /&gt;
&lt;br /&gt;
O comando FETCH recupera uma linha especifica do conjunto do cursor. Em sua forma mais simples, o comando FETCH possuí a seguinte sintaxe:&lt;br /&gt;
&lt;br /&gt;
FETCH cursor_ou_variável&lt;br /&gt;
&lt;br /&gt;
Um comando FETCH simples&lt;br /&gt;
&lt;br /&gt;
Abaixo veremos um cursor criado para retornar o primeiro registro da tabela de cidades. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivqI0tuNYqDuS4YwxjfpcB1d9A2tC4XXjzDAa2XXl6ShlPeuTKtQogcOm6BX0aJmhzMQrcIdEhpxsc1ELr8FiBcFZrFlsGhss8BCyYGSkCkPJzjgRa0dm0h-4u2QQIXuEgYT8ZAVQ6rTQ/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img bba=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivqI0tuNYqDuS4YwxjfpcB1d9A2tC4XXjzDAa2XXl6ShlPeuTKtQogcOm6BX0aJmhzMQrcIdEhpxsc1ELr8FiBcFZrFlsGhss8BCyYGSkCkPJzjgRa0dm0h-4u2QQIXuEgYT8ZAVQ6rTQ/s1600/img3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;Podemos também utilizar o FETCH para armazenar o resultado em uma variável utilizando o FETCH &lt;i&gt;cursor&lt;/i&gt; INTO variavél. Veja o exemplo a baixo:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1e0TZGwvX8TPtsnM1Q-vsYjyQJ6AJJ9ulbIX3J6-W5YtfDH-sKYcsYkE5k5J9Z-of9XioajzlFMzP52p0OxvNXP_4lNRxYvbGSi2FfU4wZ6ScxlPSfAYmhDVKK6rIFngBSJgssAiK0Ms/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img bba=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1e0TZGwvX8TPtsnM1Q-vsYjyQJ6AJJ9ulbIX3J6-W5YtfDH-sKYcsYkE5k5J9Z-of9XioajzlFMzP52p0OxvNXP_4lNRxYvbGSi2FfU4wZ6ScxlPSfAYmhDVKK6rIFngBSJgssAiK0Ms/s1600/img4.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;Além disso, podemos utilizar o FETCH para com uma combinação de palavras chaves, por exemplo:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
. FETCH FIRST – retorna a primeira linha da variável. &lt;br /&gt;
&lt;br /&gt;
. FETCH NEXT – retorna a linha seguinte. &lt;br /&gt;
&lt;br /&gt;
. FETCH PRIOR – retorna a linha anterior. &lt;br /&gt;
&lt;br /&gt;
. FETCH RELATIVE n – retorna a linha n. &lt;br /&gt;
&lt;br /&gt;
. FETCH ABSOLUNT n – pode especificar linhas antes da linha atual. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;strong&gt;FETCH NEXT com um cursor &lt;i&gt;firehose&lt;/i&gt;&lt;/strong&gt;&lt;/span&gt; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp; 
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO94EbE25-I9R4uVhujDgrvCg2Y86ADWcYU9JmZqAWSDZPXM34HMn5QiXKg812614FQ2MtpljlGOgo7H7kE5rGWmIYYhJFzKwL2GZbUO-G9XBeTWxqnb4IBE-Q23yxwp_TWvxgT9FcmuQ/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img bba=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO94EbE25-I9R4uVhujDgrvCg2Y86ADWcYU9JmZqAWSDZPXM34HMn5QiXKg812614FQ2MtpljlGOgo7H7kE5rGWmIYYhJFzKwL2GZbUO-G9XBeTWxqnb4IBE-Q23yxwp_TWvxgT9FcmuQ/s1600/img5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;Atualizando linhas com um cursor 
&lt;br /&gt;
&lt;br /&gt;
Desde que o cursor seja atualizável, alterar os valores subjacentes em um conjunto do cursor é bastante simples. Vejamos&amp;nbsp;o exemplo abaixo: 
&amp;nbsp; 
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz1PpVSX0EjbTrbOj7wrKKaXtGI9O1zvjKRu86Iah-mTFLZBfzqgl_M21kRS-I2qO3UslqOL-C6ubPcXX0ebsdatpBI3FjlKZf8xo363bdaY57s_FehgTMvC8B-sAsw-3McJ7jP41I_vI/s1600/img6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img bba=&quot;true&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz1PpVSX0EjbTrbOj7wrKKaXtGI9O1zvjKRu86Iah-mTFLZBfzqgl_M21kRS-I2qO3UslqOL-C6ubPcXX0ebsdatpBI3FjlKZf8xo363bdaY57s_FehgTMvC8B-sAsw-3McJ7jP41I_vI/s1600/img6.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
Observe que este script irá retornar duas consultas, uma com o valor inicial do cursor e outro é o SELECT depois do UPDATE. 
&lt;br /&gt;
&lt;br /&gt;
Monitoramento dos cursores&lt;br /&gt;
&lt;br /&gt;
O T-SQL fornece duas variáveis globais e uma função para auxiliar a compreender o que está acontecendo com os cursores, @@CURSOR_ROWS que retorna o número de linhas no cursor aberto por último pela conexão, abaixo veremos uma tabela com os valores que podem ser retornados pela&amp;nbsp;@@CURSOR_ROWS. 
&amp;nbsp; 
-m O cursor ainda não foi completamente preenchido. 
&lt;br /&gt;
&lt;br /&gt;
-1 O cursor é dinâmico e o número de linhas pode variar.&lt;br /&gt;
&lt;br /&gt;
0 Ou nenhum cursor foi aberto ou o mais recente não foi fechado e liberado ou o cursor contem 0 linhas.&lt;br /&gt;
&lt;br /&gt;
N O número de linhas no cursor.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;@@FETCH_STATUS retorna informações sobre o último comando FETCH que foi lançado, a tabela baixo mostra os valores de retorno para &lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;@@FETCH_STATUS.&lt;/span&gt;&lt;/span&gt; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp; 
&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;; font-size: 7.5pt; line-height: 115%; mso-ansi-language: PT-BR; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-bidi-language: AR-SA; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-fareast-language: PT-BR;&quot;&gt;0 O FETCH foi realizado com sucesso. 
&lt;br /&gt;
&lt;br /&gt;
-1 O FETCH falhou.&lt;br /&gt;
&lt;br /&gt;
-2 O registro trazido foi perdido.&lt;br /&gt;
&lt;br /&gt;
CURSOR_STATUS é uma função T-SQL que possuí a seguinte sintaxe: 
&lt;br /&gt;
&lt;br /&gt;
CURSOR_STATUS (tipo, cursor_ou_variável)&lt;br /&gt;
&lt;br /&gt;
O tipo pode ser: local, global ou variable. Os resultados da função seguem&amp;nbsp; na tabela abaixo:&lt;br /&gt;
&lt;br /&gt;
1 Se a função for chamada para um cursor dynamic, o conjunto do cursor possuirá zero, uma ou mais linhas. Se a função for chamada para outro tipo de cursor, ela possuirá ao menos uma linha.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
0 Conjunto de cursores está vazio.&lt;br /&gt;
&lt;br /&gt;
-1 O cursor está fechado.&lt;br /&gt;
&lt;br /&gt;
-2 É retornado apenas para as variáveis de cursor. Ou o cursor atribuído à variável especificada está fechado ou nenhum cursor foi atribuído à variável ainda.&lt;br /&gt;
&lt;br /&gt;
-3 O cursor ou variável de cursor especificada não existe.&lt;br /&gt;
&lt;br /&gt;
Bom, por hoje é isso pessoal, espero que tenham gostado e que tenha ajudado alguém. 
&amp;nbsp; 
se ajudou, da uma clicadinha nos anuncios ai...rsrsrs 
&amp;nbsp; 
fui...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/1228630806967802787/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/07/cursores-sql-server.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/1228630806967802787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/1228630806967802787'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/07/cursores-sql-server.html' title='Cursores SQL Server'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxTL1hqX2V5zVzZ-wLwTeCKiI1XcpkHc-ILwpooaREIQgpjRGWmWJXE_NADdJ-tVM0FdjTGG9KHmApeS46Ys_8LZDeQgTHxwzBdWnub0qd_1q4r-ULN_ZUIS6qn_SNiK3LASBxXZvdgEs/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-6754030700021982620</id><published>2013-06-25T08:43:00.003-07:00</published><updated>2013-06-25T08:43:27.282-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Usando NOLOCK no SQL SERVER</title><content type='html'>Fala pessoal,&lt;br /&gt;
ando meio ocupado depois da mudança de emprego, então dei uma parada de postar, mas hoje separei um conteudo para publicar...vamos lá.&lt;br /&gt;
&lt;br /&gt;
Para um melhor entendimento de todos e contextualização do uso de NOLOCK dentro do Microsoft SQL Server é interessante passarmos antes por algumas definições.&lt;br /&gt;
O LOCK é um mecanismo usado pelo Banco de Dados para bloquear conteudo na tentativa de sincronizar os múltiplos acessos de diversos usuários à mesma informação.&lt;br /&gt;
O uso do lock está diretamente ligado ao controle de concorrência. Este controle pode ser classificado como otimista ou pessimista. No caso do SQL Server, ele possui suporte a ambos, no entanto, o pessimista é o padrão.&lt;br /&gt;
&lt;br /&gt;
Controle de Concorrência Otimista (Optimistic Concurrency Control)&lt;br /&gt;
&lt;br /&gt;
No controle de concorrência otimista, o usuário não cria Locks quando faz a leituras dos dados. Desta forma, quando o usuário for atualizar dados, o sistema verifica se outro usuário está alterando os mesmos dados. Caso positivo, um erro será gerado. O controle é chamado de controle otimista porque é principalmente utilizado em ambientes onde a disputa dos dados é baixa e o custo de ocasionais Rollbacks das transações é menor do que o custo de utilizar Locks em comandos de leitura.&lt;br /&gt;
&lt;br /&gt;
Controle de Concorrência Pessimista (Pessimistic Concurrency Control)&lt;br /&gt;
&lt;br /&gt;
No controle de concorrência pessimista, a base de dados cria Locks que impedem usuários modificarem dados que podem afetar outros usuários de algum modo. No momento em que um usuário faz uma ação, o banco de dados cria um Lock para aquele conteúdo, desta forma, outros usuários ficam impedidos de realizarem ações que conflitem com o Lock até que o primeiro usuário acabe sua transação. O controle é chamado de controle pessimista porque é usado principalmente em ambientes onde a disputa dos dados é alta e o custo da proteção dos dados com Locks é menor do que o custo dos Rollbacks das transações se ocorrerem conflitos.&lt;br /&gt;
Com a definição do lock e dos controles de concorrência, fica mais fácil o entendimento do recurso NOLOCK do Microsoft SQL Server.&lt;br /&gt;
&lt;br /&gt;
O NOLOCK permite executar consultas ao banco de dados sem bloquear o conteúdo. Com esta breve descrição é importante a reflexão que o recurso do NOLOCK só faz sentido no uso do Controle de Concorrência Pessimista.&lt;br /&gt;
Considerando este cenário, vamos nos aprofundar um pouco mais no recurso NOLOCK do Microsoft SQL Server. Ele possui duas características bem importantes:&lt;br /&gt;
&lt;br /&gt;
1. Permite executar uma instrução SQL sem causar bloqueio da tabela que está sendo lida;&lt;br /&gt;
&lt;br /&gt;
2. Permite ler dados não commitados.&lt;br /&gt;
&lt;br /&gt;
A primeira característica é bem interessante, principalmente quando se busca performance e paralelismo. No entanto, a segunda característica precisa ser bem observada para evitar um uso indevido do NOLOCK e causar problemas no sistema. Diante disto, é muito importante que o desenvolvedor saiba exatamente o que está fazendo quando estiver utilizando o NOLOCK.&lt;br /&gt;
&lt;br /&gt;
Vamos entender a sintaxe para utilização deste recurso. Segue abaixo um exemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
– Instrução SQL Normal:&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM NOTA_FISCAL ORDER BY CD_NOTA_FISCAL;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
– Instrução SQL com NOLOCK:&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM NOTA_FISCAL WITH (NOLOCK) ORDER BY CD_NOTA_FISCAL;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Vamos agora analisar o uso para uma aplicação com as seguintes características:&lt;br /&gt;
&lt;br /&gt;
1. A tabela de Nota Fiscal é modificada apenas com comandos de INSERT ou DELETE. Nunca UPDATE, pois devido ao negócio da aplicação não existe atualização das Notas.&lt;br /&gt;
&lt;br /&gt;
2. Quem modifica esta tabela é apenas um procedimento de importação que roda através de um scheduler e não permite multi-threads do mesmo tipo. Ou seja, não temos nunca 2 importações de notas fiscais rodando em paralelo, elas ficam em fila se por algum motivo existir uma concorrência.&lt;br /&gt;
&lt;br /&gt;
3. Existem diversas consultas e reports que precisam de acesso rápido a esta tabela de Nota Fiscal.&lt;br /&gt;
&lt;br /&gt;
4. Todos os reports possuem horário de geração.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Diante destas características do sistema, o uso de NOLOCK pode ser recomendado e trazer um beneficio bem interessante a performance das consultas e reports relacionados as notas fiscais.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Vamos entender melhor esta conclusão..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Quando NÃO usamos NOLOCK e estamos no controle de concorrência pessimista, precisamos esperar que os outros procedimentos na tabela acabem para que consultas possam ser realizadas. Desta forma, denegrindo a performance de relatórios que estão rodando em paralelo a procedimentos de importação. No entanto, com o uso do NOLOCK em uma aplicação com as características descritas acima, podemos consultar os dados sem a necessidade de esperar que as importações realmente terminem, pois teremos lá o conteúdo de momento.&lt;br /&gt;
&lt;br /&gt;
O report vai marcar a hora que ele foi gerado e como não são feitos UPDATES nas notas, nunca teremos dados inconsistentes. No pior caso, poderíamos ter uma nota que posteriormente ela seria cancelada (deletada), mas isto é algo comum dentro do negocio da aplicação.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
O uso do NOLOCK implica em abrir mão da consistência em nome da melhor concorrência e tem suas aplicabilidades. No entanto, é importante sempre entender bem do negocio da aplicação e utilizá-lo com bom senso para que suas desvantagens não te tragam problemas piores que um problema de performance.&lt;br /&gt;
&lt;br /&gt;
espero ter ajudado alguem com mais esse conhecimento....e não esqueçam da clicadinha basica nos anuncios, &amp;nbsp;para dar uma insentivada ...rsrs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/6754030700021982620/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/06/usando-nolock-no-sql-server.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/6754030700021982620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/6754030700021982620'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/06/usando-nolock-no-sql-server.html' title='Usando NOLOCK no SQL SERVER'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-6732326573747296103</id><published>2013-03-18T18:02:00.002-07:00</published><updated>2013-03-18T18:02:56.845-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Quebrando String C# (Split + Contains) </title><content type='html'>Hoje vamos ver 2&amp;nbsp;métodos&amp;nbsp;c# que juntos podem nos quebrar um galhão quando trabalhamos com arquivos texto ou strings, são eles SPLIT e CONTAINS.&lt;br /&gt;
o CONTAINS busca em uma string, um&amp;nbsp;carácter&amp;nbsp;ou palavra especifica, por exemplo encontrar um &#39;|&#39; ou &#39;;&#39; dentro de uma string ( isso parece familiar ? rsrs), e retorna TRUE ou FALSE.&lt;br /&gt;
e com o comando SPLIT podemos montar um array de string com essas informações.&lt;br /&gt;
por exemplo, se o&amp;nbsp;usuário&amp;nbsp;criou uma lista de e-mails separados com &#39;;&#39;&amp;nbsp;precisaríamos&amp;nbsp;separar os e-mails para adicionar um a um em certos&amp;nbsp;métodos.&lt;br /&gt;
exemplo de uso da dupla:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;string email = &quot;marcio@hotmail.com;marcio@yahoo.com;marcio@ig.com.br&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;if&amp;nbsp;(email.Contains(&quot;;&quot;))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;kw4&quot; style=&quot;background-color: #fbfdf4; border: 0px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;background-color: #fbfdf4; border: 0px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;background-color: #fbfdf4; border: 0px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #fbfdf4; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;&amp;nbsp;emails = email.split&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;background-color: #fbfdf4; border: 0px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st0&quot; style=&quot;background-color: #fbfdf4; border: 0px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;&#39;;&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;background-color: #fbfdf4; border: 0px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #fbfdf4; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fbfdf4; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//agora basta fazer um forech no array e executar o que desejar&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
por hoje é só pessoal&lt;br /&gt;
&lt;br /&gt;
espero que tenham gostado, e não esqueçam da clicadinha no anuncio, curtida no face e comentário...rsrsrsrs&lt;br /&gt;
&lt;br /&gt;
abraços</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/6732326573747296103/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/03/quebrando-string-c-split-contains.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/6732326573747296103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/6732326573747296103'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/03/quebrando-string-c-split-contains.html' title='Quebrando String C# (Split + Contains) '/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-8110418001565929318</id><published>2013-02-27T15:46:00.001-08:00</published><updated>2013-02-27T15:47:55.537-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Coleções .Net ( C# ) - Final - HybridDictionary</title><content type='html'>Hoje vamos finalizar a série coleções com a classe HybridDictionary, se vc não viu os outros posts, não deixe de conferir:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-4-sortedlist.html&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-5-listdictionary.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-5-listdictionary.html&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
A classe HybridDictionary está localizada dentro do namespace System.Collections.Specialized e implementa uma coleção de Chave/Valor, assim como a HashTable então qual é a diferença ?&lt;br /&gt;
simples, quando precisamos trabalhar com uma coleção grande a melhor escolha é a HashTable, quando vamos trabalhar com uma coleção pequena, usamos a ListDictionary mas quando não sabemos o tamanho da coleção, ai entra em ação a HybridDictionary, pois enquanto a coleção é pequena ela é implementada como a ListDictionary e quando a coleção fica muito grande ela se converte para HashTable.&lt;br /&gt;
a utilização é igual a HashTable e ListDictionary, vamos ver o exemplo:&lt;br /&gt;
&lt;br /&gt;
no evento click da nossa tela padrão começamos com o de costume, instanciando a classe e adicionando algumas informações na coleção para testes:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-VvqHaH56gdf8mEn-dnCXSjxY37Y3VR_obYsUit6QnC69jXHfAblxbIgKlL0l1-2w75KHABiK4xgk1nCgSeaA2gxsUimiE10upuGMj3HmDld5OYPGxvm2p4KfCSCvLhkRATxBrB4gdz8/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-VvqHaH56gdf8mEn-dnCXSjxY37Y3VR_obYsUit6QnC69jXHfAblxbIgKlL0l1-2w75KHABiK4xgk1nCgSeaA2gxsUimiE10upuGMj3HmDld5OYPGxvm2p4KfCSCvLhkRATxBrB4gdz8/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora percorremos a coleção adicionando os itens na listBox&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLRuK8niesLrpnARJkoz6EQd9bMr41opGFEPI91qbLYI1WuKnDDsv0NuVtNpFiDGONXLIH0HPCH7fDygHZ78w6EFbBpCpDjqGDXqwZUpukLJYJBUmbkH4s5b0HDY8l4Opoo8oRJlrMIXU/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLRuK8niesLrpnARJkoz6EQd9bMr41opGFEPI91qbLYI1WuKnDDsv0NuVtNpFiDGONXLIH0HPCH7fDygHZ78w6EFbBpCpDjqGDXqwZUpukLJYJBUmbkH4s5b0HDY8l4Opoo8oRJlrMIXU/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
depois procuramos um item especifico na coleção e mostramos no listBox&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjFCkD_MxXJCNVCrD34X9-F9kXvsh2dVGRt13FDL00_-Nkn1RgjoB4FR4GQ71XHHtAQD31SxsICpj1E6kwc24IgEY6ea_UjGLznc4WR11z3dqN8N74Y5T9W2f-kAvT7zJ6NngYhjszhvs/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjFCkD_MxXJCNVCrD34X9-F9kXvsh2dVGRt13FDL00_-Nkn1RgjoB4FR4GQ71XHHtAQD31SxsICpj1E6kwc24IgEY6ea_UjGLznc4WR11z3dqN8N74Y5T9W2f-kAvT7zJ6NngYhjszhvs/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
por fim, limpamos a coleção&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqJQwfZbW7QcPXSBqglUh8PCeNxjIHNVWIMbQHMY6nSfTye3GSqWj2tDC5_OmykNEy88L5FjTo_tcc3pzn__fmKGWAeFLLVJk4LZAUqWrRx6N9GGlkzQPVfsenqwce6UxvJ8KI-bH-DT0/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqJQwfZbW7QcPXSBqglUh8PCeNxjIHNVWIMbQHMY6nSfTye3GSqWj2tDC5_OmykNEy88L5FjTo_tcc3pzn__fmKGWAeFLLVJk4LZAUqWrRx6N9GGlkzQPVfsenqwce6UxvJ8KI-bH-DT0/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora é só testar a aplicação e ver o resultado&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1qqJZox5gmDqGrekFpKOSLwAKY6rzX2I7iD1Dv7Sq7dqmE0hVujgTO2jYu5mYtYbBY3DRztwwKyKOZBmXHMRpoJbo83es3m7L9nBQqPvwxEPx6Iyb2D-yac0bA-6ZZuzOGWTXIWbXhmc/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1qqJZox5gmDqGrekFpKOSLwAKY6rzX2I7iD1Dv7Sq7dqmE0hVujgTO2jYu5mYtYbBY3DRztwwKyKOZBmXHMRpoJbo83es3m7L9nBQqPvwxEPx6Iyb2D-yac0bA-6ZZuzOGWTXIWbXhmc/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
bom pessoal é isso, espero que tenham gostado dessa série, que tenha servido pra alguém, e vamos ver o que nos aguarda no próximo post.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #0000ee;&quot;&gt;&lt;span style=&quot;color: #0000ee;&quot;&gt;&lt;span style=&quot;color: #0000ee;&quot;&gt;&lt;span style=&quot;color: #0000ee;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;um abraço a todos e não esqueçam daquela clicadinha maneira nos anuncios..rsrsrs&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/8110418001565929318/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-final-hybriddictionary.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8110418001565929318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8110418001565929318'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-final-hybriddictionary.html' title='Coleções .Net ( C# ) - Final - HybridDictionary'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-VvqHaH56gdf8mEn-dnCXSjxY37Y3VR_obYsUit6QnC69jXHfAblxbIgKlL0l1-2w75KHABiK4xgk1nCgSeaA2gxsUimiE10upuGMj3HmDld5OYPGxvm2p4KfCSCvLhkRATxBrB4gdz8/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-2935324515108970901</id><published>2013-02-15T10:31:00.002-08:00</published><updated>2013-02-15T10:32:17.715-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Coleções .Net ( C# ) - Parte 5 ListDictionary</title><content type='html'>Continuando nossa série Coleções .Net (se você não acompanhou os posts anteriores:&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&quot; style=&quot;-webkit-transition: color 0.3s; background-color: white; color: #009eb8; display: inline; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19px; outline: none; text-align: justify; text-decoration: initial;&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-4-sortedlist.html&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
) , hoje vamos conhecer a ListDictionary, essa classe está localizada no namespace System.Collections.Specialized e implementa uma coleção de Chave/Valor, essa classe é semelhante a HashTable, a grande diferença das duas, é que a ListDictionary é otimizada para trabalhar com pequenas coleções.&lt;br /&gt;
vamos ao exemplo&lt;br /&gt;
&lt;br /&gt;
começamos com nossa tela padrão de testes:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIJFydInZEZ25q-SS8eDO7Pbbrh21qY_Gakq4FQ0cxs-r9i1qJp02ze40dJlQQzwrNTFFb9bLYkKI5yEPazrxBxjQS3_-J7OQYKc-gaD2uZTanzN6FZcQZYZWYnEW5ITATMmQd_MA12qs/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIJFydInZEZ25q-SS8eDO7Pbbrh21qY_Gakq4FQ0cxs-r9i1qJp02ze40dJlQQzwrNTFFb9bLYkKI5yEPazrxBxjQS3_-J7OQYKc-gaD2uZTanzN6FZcQZYZWYnEW5ITATMmQd_MA12qs/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
no click do botão, colocaremos o seguinte código, primeiro instanciamos um objeto da classe ListDictionary e adicionamos itens na coleção:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCX74Rbw2f6hgUx_oEqIe2EWZykwnb-e-6fkVqoo8aPryoOej-O0nnbL5__GwqXuJlJFiLLggq02dr8DTeKI0_ayrN_JezlfWxrzItvZja2pYhwpSbLnkYxvysM7logASRxwQC78KphNQ/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCX74Rbw2f6hgUx_oEqIe2EWZykwnb-e-6fkVqoo8aPryoOej-O0nnbL5__GwqXuJlJFiLLggq02dr8DTeKI0_ayrN_JezlfWxrzItvZja2pYhwpSbLnkYxvysM7logASRxwQC78KphNQ/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora vamos percorrer a lista adicionando os valores na listBox, e colocamos um separador para indicar o fim do processo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY-5owb21SwOAu9djX3ACM07b1BXhOOB7r0aa76_osCXf0sp_XXX6x31ZmkmQpNz4sMlvO01ta1IvK9sk0UM6hUp9hUJchQkTXKMyE2pqVsG_1IcTKX_g-ger_iIDCuLbWdMQOdGAP7e4/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY-5owb21SwOAu9djX3ACM07b1BXhOOB7r0aa76_osCXf0sp_XXX6x31ZmkmQpNz4sMlvO01ta1IvK9sk0UM6hUp9hUJchQkTXKMyE2pqVsG_1IcTKX_g-ger_iIDCuLbWdMQOdGAP7e4/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
vamos buscar um item na coleção e adicionar na list box, e adicionar mais um separador:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTETyNzMOfX3x59T6H6PIftjeY28NCED7mIW1AsUeWgiJLl90YbqSslfDUsOXX7tqkN1vbFPyvyWLxfvNP6c5bxRdOLut8nfdPcTh3s4jWQS0_v4fLMjl15bfH4C1sOINgEzNT-ZDTK1Y/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTETyNzMOfX3x59T6H6PIftjeY28NCED7mIW1AsUeWgiJLl90YbqSslfDUsOXX7tqkN1vbFPyvyWLxfvNP6c5bxRdOLut8nfdPcTh3s4jWQS0_v4fLMjl15bfH4C1sOINgEzNT-ZDTK1Y/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
e por fim limpamos a coleção:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_YYgftFE0SXGujLs1r1cTJiF04OQpIrWdC00lfCITPIxpdhmRppYGPnfqwqkztzzzirofIWyIZjQBArRX9n9W9h0Zc-qAOh5HKw7Tis-jxJ6EIZOtV80nFN_7BfibAMjKNcHhYkzCxU/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS_YYgftFE0SXGujLs1r1cTJiF04OQpIrWdC00lfCITPIxpdhmRppYGPnfqwqkztzzzirofIWyIZjQBArRX9n9W9h0Zc-qAOh5HKw7Tis-jxJ6EIZOtV80nFN_7BfibAMjKNcHhYkzCxU/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
execute a aplicação e veja o resultado:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSrEIr7pYOvL6vOCfa6e6BCZVmuW_2GS2M7yaAEQ__0u2ogzYCNxBvmmp-u5dqO-TyvrmMeMbV0wkXReSJtmklN9dRCNmUzTfMP1oUpHNAscqWs3JJgaQDpA8M9OKrpEyuE13GGBrbX3U/s1600/img6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSrEIr7pYOvL6vOCfa6e6BCZVmuW_2GS2M7yaAEQ__0u2ogzYCNxBvmmp-u5dqO-TyvrmMeMbV0wkXReSJtmklN9dRCNmUzTfMP1oUpHNAscqWs3JJgaQDpA8M9OKrpEyuE13GGBrbX3U/s400/img6.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que estejam gostando da série e que eu tenha ajudado alguém, &amp;nbsp;na&amp;nbsp;próxima&amp;nbsp;veremos a classe HybridDictionary.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
um abraço a todos.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
gostou ? clica em um anuncio ai !! rsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/2935324515108970901/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-5-listdictionary.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2935324515108970901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2935324515108970901'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-5-listdictionary.html' title='Coleções .Net ( C# ) - Parte 5 ListDictionary'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIJFydInZEZ25q-SS8eDO7Pbbrh21qY_Gakq4FQ0cxs-r9i1qJp02ze40dJlQQzwrNTFFb9bLYkKI5yEPazrxBxjQS3_-J7OQYKc-gaD2uZTanzN6FZcQZYZWYnEW5ITATMmQd_MA12qs/s72-c/img1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-8134712403269774654</id><published>2013-02-11T07:38:00.001-08:00</published><updated>2013-02-11T07:38:08.414-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Coleções .Net ( C# ) - Parte 4 SortedList </title><content type='html'>Continuando nossa série coleções .NET, veremos hoj a SortedList, como todas as outras vistas até agora ela também está localizada dentro do namespace System.Collections, e implementa uma coleção de Chave/Valor assim como a HashTable.&lt;br /&gt;
O uso dessa classe é bem semelhante a HashTable, a principal diferença é que o array de chaves da SortedList é sempre ordenado, portanto para cada inserção ou exclusão, a classe sincroniza os itens para que permaneçam ordenados.&lt;br /&gt;
Como a HashTable, a classe também não aceita chave duplicada e para percorrer pela coleção é necessário utilizar a classe DictionaryEntry, vamos ao exemplo:&lt;br /&gt;
&lt;br /&gt;
começamos com nosso form padrão de testes ( se você não viu, acompanhe a série):&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-3-hashtable.html &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsG_vJs0yFpjXcyx8JNKT7h1j-f2F3oLvUFxi4-J_0yOfKLewdSgMMHhejb-_w9nvE2wWsYU_Awt5VJw5j_-t1w-zYcW76fCql4WRpxNzny7iNdsgOtC0b0601HGEuKndcEAF-FYhDues/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsG_vJs0yFpjXcyx8JNKT7h1j-f2F3oLvUFxi4-J_0yOfKLewdSgMMHhejb-_w9nvE2wWsYU_Awt5VJw5j_-t1w-zYcW76fCql4WRpxNzny7iNdsgOtC0b0601HGEuKndcEAF-FYhDues/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
no evento click do botão, começaremos nosso código com o de costume, instanciando um objeto da classe e preenchendo com os itens:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER5UTJIy5dbP8e4O3suA0NykLXfrltVoQUpGbbhhciD_xnjfp9dyXHmphy979ErPEqr01jZ95EjjvK7a5-8RyF5AhNwDg5QbPpKeHmc_muXd0VqfSygOvvIjpbok6jTyclXoYiq8lJRs/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER5UTJIy5dbP8e4O3suA0NykLXfrltVoQUpGbbhhciD_xnjfp9dyXHmphy979ErPEqr01jZ95EjjvK7a5-8RyF5AhNwDg5QbPpKeHmc_muXd0VqfSygOvvIjpbok6jTyclXoYiq8lJRs/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora percorremos a lista preenchendo o listBox com os itens e adicionamos um separador para marcar o fim da lista:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy1RKGToP0gGI5xxuDH1xRk0b3c_IkB8gpMk-JYmq0iC-S9YLHKgvJ1jVhQ90vE8koAvYhNL4Gu9LKbEQAdm5gGZ2ccrhGL7BviCWi6A0pCnsBB8EFZnF8P2FwZzqELrWSUoIJ-sRhMpI/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy1RKGToP0gGI5xxuDH1xRk0b3c_IkB8gpMk-JYmq0iC-S9YLHKgvJ1jVhQ90vE8koAvYhNL4Gu9LKbEQAdm5gGZ2ccrhGL7BviCWi6A0pCnsBB8EFZnF8P2FwZzqELrWSUoIJ-sRhMpI/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
buscamos um item qualquer da lista e adicionamos mais um separador:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghATtLj1DZFRnIez4Ax99IcAN-vTW-ZuwhPsbj5wH44swO-3jbqNnBGnvrrNAAsEMeXozbxOZwTeu9x6afiHd_FMcwo3swRswrxyITZzXgFL8vjCiw-tTJTAjAX-5NrV1yBFPrZmGCn-s/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghATtLj1DZFRnIez4Ax99IcAN-vTW-ZuwhPsbj5wH44swO-3jbqNnBGnvrrNAAsEMeXozbxOZwTeu9x6afiHd_FMcwo3swRswrxyITZzXgFL8vjCiw-tTJTAjAX-5NrV1yBFPrZmGCn-s/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;e para finalizar limpamos a lista:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi85Uybla2ODkZ2cJiN0d_IVWNaEQaMr6XC7Ul5Cf7Idr2iSBiv12vmp_0iepAVe5pYe6dJKMu1_UAs5gDeKr_GmfRvPXNM6onZAArVaiRbJagUED994_tSK84u0Rdnps_WJZQ4aIvP8BQ/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi85Uybla2ODkZ2cJiN0d_IVWNaEQaMr6XC7Ul5Cf7Idr2iSBiv12vmp_0iepAVe5pYe6dJKMu1_UAs5gDeKr_GmfRvPXNM6onZAArVaiRbJagUED994_tSK84u0Rdnps_WJZQ4aIvP8BQ/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
execute o projeto e veja o resultado:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb-OZUJBizPPMhvBrdgkqG8AG7B4cBJ1zQsGyN2Akk-0CE2E1HtcPzGcvkV6f1x-u6PNCv79A_fXg-Lg71R2PFRYgEQTfRFdAqTWtVOpGP1Pzy8K5PLQsg_jIEa52bO8y8req5Av8ZEJ8/s1600/img6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb-OZUJBizPPMhvBrdgkqG8AG7B4cBJ1zQsGyN2Akk-0CE2E1HtcPzGcvkV6f1x-u6PNCv79A_fXg-Lg71R2PFRYgEQTfRFdAqTWtVOpGP1Pzy8K5PLQsg_jIEa52bO8y8req5Av8ZEJ8/s400/img6.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Veja que independente da ordem em que os itens foram adicionados, a SortedList organiza pela chave o que facilita a vida em muitas situações.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que tenham gostado de mais esse post, na continuação veremos a ListDictionary.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
gostou ? então da uma clicadinha em um anuncio..rsrs...e pode deixar mensagens tb =D&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
um abraço a todos e até mais &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/8134712403269774654/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-4-sortedlist.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8134712403269774654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8134712403269774654'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-4-sortedlist.html' title='Coleções .Net ( C# ) - Parte 4 SortedList '/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsG_vJs0yFpjXcyx8JNKT7h1j-f2F3oLvUFxi4-J_0yOfKLewdSgMMHhejb-_w9nvE2wWsYU_Awt5VJw5j_-t1w-zYcW76fCql4WRpxNzny7iNdsgOtC0b0601HGEuKndcEAF-FYhDues/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-205989183877114195</id><published>2013-02-07T08:40:00.001-08:00</published><updated>2013-02-07T08:40:14.810-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Coleções .Net ( C# ) - Parte 3 HashTable </title><content type='html'>Continuando a série coleções, vamos ver a classe HashTable.&lt;br /&gt;
essa classe também esta localizada no namespace System.Collections, e implementa uma coleção de Chave/Valor.&lt;br /&gt;
Internamente a classe contem dois objetos array, um para armazenar as chaves e outro para os valores, ao inserir um item somos obrigados a informar uma chave, que não pode ser repetida, para prevenir exceções de chave duplicada, ao inserir um item, vale verificar se ele já existe.&lt;br /&gt;
Para adicionar itens usamos o metodo ADD, para verificar se o item existe usamos o metodo ContainsKey, para interar sobre a coleção é necessário usar um objeto da classe DictionaryEntry, vamos ao exemplo:&lt;br /&gt;
Começamos com nossa telinha padrão ( pra quem não viu a criação, acompanhe a série) :&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-2-stack.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivKtgulhG91aSMlMpAE3M7TfkOu7vsNTULwqpdKIy382U8ONaYW9KN5TRLpHOtOUG5z3mm02Dv0VHDjAm1ykZhWQbFGfoLSny_BczOjTGd6uvjwu1DofE7KdvHvbMNWYPLwMCF5yRGp6A/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivKtgulhG91aSMlMpAE3M7TfkOu7vsNTULwqpdKIy382U8ONaYW9KN5TRLpHOtOUG5z3mm02Dv0VHDjAm1ykZhWQbFGfoLSny_BczOjTGd6uvjwu1DofE7KdvHvbMNWYPLwMCF5yRGp6A/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora no evento click do botão começamos instanciando o objeto da classe, adicionando os itens (Chave/Valor), Percorremos a coleção adicionando os itens na listBox, e colocamos um separador.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAd88DikLkTqALBFqwgToWZVm7SLHXqnjfKqycYz302GWM4I7nn36vsBsL2PQKdzSLsxcMijDgKHb7MCQMADklRkVhtKwEHbdjZrWKbaF3LQymy9DreWAFzA6bJa1MXfvLAq2CgUCc6a8/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAd88DikLkTqALBFqwgToWZVm7SLHXqnjfKqycYz302GWM4I7nn36vsBsL2PQKdzSLsxcMijDgKHb7MCQMADklRkVhtKwEHbdjZrWKbaF3LQymy9DreWAFzA6bJa1MXfvLAq2CgUCc6a8/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
agora vamos buscar um item na coleção, caso ele exista imprimimos no listBox também&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQM8Xlo1w01lTZ8fPXfia-odS-6coUPKfb5mlvZ5YtriWtZdynv1brhpEWQw9k0aw3VUUxPD08CItLP94tiz-04Zon_zkcBNxvVfIpfsZNYeVmRq6-fqJqCZ_wVbBuxEgldfEu4yGyc3E/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQM8Xlo1w01lTZ8fPXfia-odS-6coUPKfb5mlvZ5YtriWtZdynv1brhpEWQw9k0aw3VUUxPD08CItLP94tiz-04Zon_zkcBNxvVfIpfsZNYeVmRq6-fqJqCZ_wVbBuxEgldfEu4yGyc3E/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
para finalizar, adicionamos mais um separador, verificamos se a coleção tem algum item e limpamos ela.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOUmxEBkhfvfA7eXDeClSVj1vc1H6flqihcpVvbWCVuWSKuK0nJs30TbX2swnWhAuj65EFYNcLM7th9bLyZOTAI-8lSU0PQbAM1c6OCZCDCg5Hnd9UROUC9gUZIZB2l9pP5TNukYsLEb4/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOUmxEBkhfvfA7eXDeClSVj1vc1H6flqihcpVvbWCVuWSKuK0nJs30TbX2swnWhAuj65EFYNcLM7th9bLyZOTAI-8lSU0PQbAM1c6OCZCDCg5Hnd9UROUC9gUZIZB2l9pP5TNukYsLEb4/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
execute sua aplicação e veja o resultado:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh0FHHZQmiyc9m2sTgijmY-LSMmctXpTasRI2kj8nU8JbY3GNk9Z7jmBCKD1C3pl-nD34AD17DacRVQOsqU6wMvx__RP6b1Kkg7s6WY6nwzhPnrUO12RCgRzfnEMs4fCBlB7F1qmWoM9U/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh0FHHZQmiyc9m2sTgijmY-LSMmctXpTasRI2kj8nU8JbY3GNk9Z7jmBCKD1C3pl-nD34AD17DacRVQOsqU6wMvx__RP6b1Kkg7s6WY6nwzhPnrUO12RCgRzfnEMs4fCBlB7F1qmWoM9U/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que tenham gostado e que tenha ajudado alguem, na proxima veremos a classe SortedList&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
não esqueção da clicadinha no anuncio....rsrsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
abração. &lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/205989183877114195/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-3-hashtable.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/205989183877114195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/205989183877114195'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-3-hashtable.html' title='Coleções .Net ( C# ) - Parte 3 HashTable '/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivKtgulhG91aSMlMpAE3M7TfkOu7vsNTULwqpdKIy382U8ONaYW9KN5TRLpHOtOUG5z3mm02Dv0VHDjAm1ykZhWQbFGfoLSny_BczOjTGd6uvjwu1DofE7KdvHvbMNWYPLwMCF5yRGp6A/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-2244684494891909590</id><published>2013-02-06T08:26:00.001-08:00</published><updated>2013-02-06T08:26:12.711-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Coleções .Net ( C# ) - Parte 2 Stack</title><content type='html'>Continuando a série coleções em .net, hoje vamos ver a classe Stack, essa classe também está localizada dentro do namespace System.Collections, ela implementa o mecanismo LIFO (Last In First Out), ou seja, o último elemento a ser adicionado é o primeiro a sair.&lt;br /&gt;
Para adicionar um item na lista usamos o&amp;nbsp;método&amp;nbsp;Push, &amp;nbsp;para retirar usamos o&amp;nbsp;método&amp;nbsp;Pop, para limpar todos os elementos a operação Clear e a operação Peek para retornar o elemento que está no topo.&lt;br /&gt;
vamos ao exemplo, usarei o mesmo projeto da parte 1 &amp;nbsp;&lt;a href=&quot;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&quot;&gt;http://programaresimples.blogspot.com.br/2013/02/colecoes-net-c-parte-1-queue.html&lt;/a&gt;&lt;br /&gt;
o form tem apenas um listBox e um botão:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhVw5a6zLIm3FWiFVt_pj1rgSAOUoXmEAmI4RHxzRpFJ1qLU132kl2Z3q3_KXxqhdjc7oR6QKOxBQ8WwRXBOkwtjzeTexMSIkKWn2-8WqWvP5uHhV_W5CBRKtmXdqG8AeX8-P250l7kU/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhVw5a6zLIm3FWiFVt_pj1rgSAOUoXmEAmI4RHxzRpFJ1qLU132kl2Z3q3_KXxqhdjc7oR6QKOxBQ8WwRXBOkwtjzeTexMSIkKWn2-8WqWvP5uHhV_W5CBRKtmXdqG8AeX8-P250l7kU/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
no evento click do botão, começaremos com o seguinte código:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8AKKZOOeUZpf2MQvGkhuEeVNd3AQ9absuFt0voqjE3nKrg9Z5Q9MWbQ1MiXvblptxJ90wb8p6Uq6hQuuy8dZz0pg_vW9kjhg0hddO2e4O3acgQ_ovyp8aDzI0ITvIFi_-nqmye9nuDOc/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8AKKZOOeUZpf2MQvGkhuEeVNd3AQ9absuFt0voqjE3nKrg9Z5Q9MWbQ1MiXvblptxJ90wb8p6Uq6hQuuy8dZz0pg_vW9kjhg0hddO2e4O3acgQ_ovyp8aDzI0ITvIFi_-nqmye9nuDOc/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Primeiro instanciamos um objeto da classe Stack, depois preenchemos ela com 3 itens os&amp;nbsp;números 5,2 e 3&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
continuamos com esse código:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEUOQg-vbyttCpEIlyLvHv617fBD3hOq8Yaztodf1HDODYebqUoffrXlyGH9pKeqbY2YG0W_9ZFXkLg0LNhxpb6d0ZLvE6ORhgJWKxNdIjDuD2vP52lUxH_h6nBf_xBGgMMQQJZSYcAFk/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEUOQg-vbyttCpEIlyLvHv617fBD3hOq8Yaztodf1HDODYebqUoffrXlyGH9pKeqbY2YG0W_9ZFXkLg0LNhxpb6d0ZLvE6ORhgJWKxNdIjDuD2vP52lUxH_h6nBf_xBGgMMQQJZSYcAFk/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Agora para finalizar, colocamos uma linha para separar a inserção dos itens da exclusão, e colocamos o código&amp;nbsp;responsável&amp;nbsp;por retirar os itens, feito isso, rode a aplicação e veja o resultado:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHJOmIYg9ROL7gamvawnbwvxKxr8e_4wEsg6Ajl6xXui0piE_CwRlvi7GSZmUt0lpPj4vYLO5mJQyQyO8nSLzBeVgU89IhSJyAjvqhqLXbkA2eBcITv0b1lrVh14jyw4dnfJ-ca5UNXEA/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHJOmIYg9ROL7gamvawnbwvxKxr8e_4wEsg6Ajl6xXui0piE_CwRlvi7GSZmUt0lpPj4vYLO5mJQyQyO8nSLzBeVgU89IhSJyAjvqhqLXbkA2eBcITv0b1lrVh14jyw4dnfJ-ca5UNXEA/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
veja que o ultimo item a ser inserido na lista, é o primeiro a sair, assim como foi dito no começo do post.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que tenham gostado, e no&amp;nbsp;próximo&amp;nbsp;veremos a classe HashTaable.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
não esqueçam do cliquezinho no anuncio..rsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
um abração a todos.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/2244684494891909590/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-2-stack.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2244684494891909590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2244684494891909590'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-2-stack.html' title='Coleções .Net ( C# ) - Parte 2 Stack'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhVw5a6zLIm3FWiFVt_pj1rgSAOUoXmEAmI4RHxzRpFJ1qLU132kl2Z3q3_KXxqhdjc7oR6QKOxBQ8WwRXBOkwtjzeTexMSIkKWn2-8WqWvP5uHhV_W5CBRKtmXdqG8AeX8-P250l7kU/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-2712496039532590441</id><published>2013-02-05T08:33:00.001-08:00</published><updated>2013-02-06T08:26:30.176-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Coleções .Net ( C# ) - Parte 1 Queue</title><content type='html'>Vamos ver um pouco sobre coleções no .NET, farei uma série de post&#39;s para aprendermos um pouco de cada uma das mais usadas, hoje mostrarei o Queue.&lt;br /&gt;
A classe Queue fica dentro do namespace System.Collections e utiliza o mecanismo FIFO (First In First Out), ou seja primeiro elemento que entra na fila é o primeiro que sai.&lt;br /&gt;
Para incluir um elemento nessa classe usamos a palavra Enqueue e para retirar usamos Dequeue, vamos ao exemplo:&lt;br /&gt;
Crie um projeto novo no Visual Studio, no caso estou usando o 2010, e coloque um listBox e um Botão no form:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRgDIbvr-ecukcnS49EUOl5doYkXZtxSQXl5SXozyLWKP-A40tMOx77xp-1BAy3Nvnv46xjui7dLcmaEeCK7fiyB5Cu1hRJS1xKzStIT3gnuVx9x_6rmzzHEObYAePjgvSHM8K1O0PU4Q/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRgDIbvr-ecukcnS49EUOl5doYkXZtxSQXl5SXozyLWKP-A40tMOx77xp-1BAy3Nvnv46xjui7dLcmaEeCK7fiyB5Cu1hRJS1xKzStIT3gnuVx9x_6rmzzHEObYAePjgvSHM8K1O0PU4Q/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
o listBox deixei com o nome padrão mesmo, e o botão dei o nome de btnAdicionar, feito isso de dois cliques no botão para entrarmos no evento click dele e coloque o seguinte código:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqGcRuF9bH78mxM_zpwVdCcmyRO4Scc2V-9i7I0-7hvTYIR6jyCEByVoQ9E-ZCMs9bFNZU2YCMiIpoWhfwSPKnLqchFkYGWuwd6GG3rXFq7BEc51NNMvVSf68-6nb-UcWNz5-jWbzHUE4/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqGcRuF9bH78mxM_zpwVdCcmyRO4Scc2V-9i7I0-7hvTYIR6jyCEByVoQ9E-ZCMs9bFNZU2YCMiIpoWhfwSPKnLqchFkYGWuwd6GG3rXFq7BEc51NNMvVSf68-6nb-UcWNz5-jWbzHUE4/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
primeiro lembre de colocar o using&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;System.Collections&lt;/span&gt; para podermos usar a classe, a primeira coisa a fazer é instanciar um objeto da classe Queue &quot;&lt;span style=&quot;color: blue;&quot;&gt;Queue Teste = new Queue();&lt;/span&gt;&quot; e depois adicionar os itens no objeto usando o&amp;nbsp;método&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Enqueue(), &lt;/span&gt;eu adicionei na minha instancia os nomes, João, José, Marcio.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora adicione o seguinte trecho:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0tIGTyIkbrIcQ1G5vX9mcskx-PSRUcZX9I4-Jj4Kx5Ecnc9LPWEzr2GbsvgDJ-D_VWfm5HWyHwvtXaZzdUFVJ-r7S7UkfxsmzqJdX3Dki_HviuPRzA-neDsmpRhXgOkeulvLgDVgEjN4/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0tIGTyIkbrIcQ1G5vX9mcskx-PSRUcZX9I4-Jj4Kx5Ecnc9LPWEzr2GbsvgDJ-D_VWfm5HWyHwvtXaZzdUFVJ-r7S7UkfxsmzqJdX3Dki_HviuPRzA-neDsmpRhXgOkeulvLgDVgEjN4/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Agora fizemos um foreach na coleção adicionando cada item no listBox, vamos para a parte final:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaKdsI91BaGm8-zxcX0tW5Y9WlVvzO3-qz7WATgKtY_NnPeGO60Dxdh8q_AVrLfk7CI88X5bjWgIzk_cqIrPtZ8kI0pwB-7gx4VmVMc6aX7J-llKIShx-dQMoIFyEuGfvbiaafb0ACahc/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaKdsI91BaGm8-zxcX0tW5Y9WlVvzO3-qz7WATgKtY_NnPeGO60Dxdh8q_AVrLfk7CI88X5bjWgIzk_cqIrPtZ8kI0pwB-7gx4VmVMc6aX7J-llKIShx-dQMoIFyEuGfvbiaafb0ACahc/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
no ultimo trecho, adicionamos uma linha para separar a inserção dos itens da exclusão, depois fizemos um while na coleção, retirando os itens e mostrando no listBox a ordem em que eles foram retirados, feito isso rode a aplicação e click no botão para ver a execução:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQRga3T1rlABW3BHmahOOzvpTAc0SzJhglcCQqvQMIJVDGQWtV9nM8SeMWTXehwt2sYxcOkh7oMB_w0AVvo9vqa8GAdN1n7Jd9Bq3V1sHALrZUMnKMfy0SeFfd5FR0hsfLnvsiAEmRCQ/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibQRga3T1rlABW3BHmahOOzvpTAc0SzJhglcCQqvQMIJVDGQWtV9nM8SeMWTXehwt2sYxcOkh7oMB_w0AVvo9vqa8GAdN1n7Jd9Bq3V1sHALrZUMnKMfy0SeFfd5FR0hsfLnvsiAEmRCQ/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Veja que os itens foram retirados na mesma ordem em que foram adicionados, ou seja, o primeiro que entrou foi o primeiro que saiu ( FIFO)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que tenham gostado e no&amp;nbsp;próximo&amp;nbsp;post veremos a classe Stack.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
um abraço a todos e não esqueçam da clicadinha&amp;nbsp;básica&amp;nbsp;no anuncio..rsrsrsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/2712496039532590441/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-1-queue.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2712496039532590441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/2712496039532590441'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/colecoes-net-c-parte-1-queue.html' title='Coleções .Net ( C# ) - Parte 1 Queue'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRgDIbvr-ecukcnS49EUOl5doYkXZtxSQXl5SXozyLWKP-A40tMOx77xp-1BAy3Nvnv46xjui7dLcmaEeCK7fiyB5Cu1hRJS1xKzStIT3gnuVx9x_6rmzzHEObYAePjgvSHM8K1O0PU4Q/s72-c/img1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-9033240535053923197</id><published>2013-02-04T08:00:00.001-08:00</published><updated>2013-02-05T08:37:26.845-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>WPF - Form Transparente</title><content type='html'>Mostrarei hoje, uma maneira bem simples de fazer um form transparente com o WPF, com esse tipo de customização podemos dar uma experiencia rica ao usuário&amp;nbsp;final.&lt;br /&gt;
&lt;br /&gt;
primeiro crie seu projeto do tipo WPF, e no caso aqui usarei C# como linguagem, como só vamos usar uma linha de código, pode usar a linguagem de sua preferencia. ( se você não viu como criar um projeto do zero, de uma olhada nesse link :&lt;br /&gt;
http://programaresimples.blogspot.com.br/2013/02/iniciando-com-wpf-animacao-simples.html&lt;br /&gt;
&lt;br /&gt;
com o projeto criado a primeira coisa a fazer é, selecionar a Window e nas propriedades marcar a opção que habilita a&amp;nbsp;transparência&amp;nbsp;&quot;AllowsTransparec...&quot;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho1ShWxTA1j8OhOHMTm6M8vrvXSwq3rDx-4SgBZIxRL0kG1c5WO4dPJl85RU8Y76aOYBIpBAiTA_2mESm0tLl79GyV2aOO1ua2nw6SerDHRZIB6V7_ez5-3NYZ6fTumjowK5Z-HPZ1CY0/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho1ShWxTA1j8OhOHMTm6M8vrvXSwq3rDx-4SgBZIxRL0kG1c5WO4dPJl85RU8Y76aOYBIpBAiTA_2mESm0tLl79GyV2aOO1ua2nw6SerDHRZIB6V7_ez5-3NYZ6fTumjowK5Z-HPZ1CY0/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
habilitando essa opção repare que os botões de minimizar, maximizar e fechar da janela, assim podemos customizar a nosso gosto, para esse exemplo só farei o botão de fechar.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
coloque um&amp;nbsp;retângulo, ou forma que desejar em cima do form, pois essa forma será o forme real, veja que o retângulo da a opção de arredondar as bordas, chegando com o mouse na borda você verá as linhas para arrastar e arredondar a seu gosto:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4tIEfuymQ8-WmaTm1ivbK-M-pKn-45aHZGV41gAYaVVqGB1Qqipg0vxqKk1TRH91fZyUh0tz6Dp8KjSJVc5n1zqaMnoMfImMRtRtazqVeDdZHxoad2DGhcUCj1eQRMWkUefmlDRypNt8/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4tIEfuymQ8-WmaTm1ivbK-M-pKn-45aHZGV41gAYaVVqGB1Qqipg0vxqKk1TRH91fZyUh0tz6Dp8KjSJVc5n1zqaMnoMfImMRtRtazqVeDdZHxoad2DGhcUCj1eQRMWkUefmlDRypNt8/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora vamos sumir com o form principal, selecione na paleta de objetos ou clicando no form, a opção Window, e nas propriedades clique na opção No Brush da cor de fundo.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIOiI51rokAweSFpNCzzK57sHkpmGGq3a_DzRLv2qd8l5p6M55SEil1g_F6r5hJZqRbu86gT0_63nmLfwcScPwCbWfEw1NslFdNyFwQQ3LfdqFohJ_cRH52vzU9LPa-rVVu4HREMEHh5c/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIOiI51rokAweSFpNCzzK57sHkpmGGq3a_DzRLv2qd8l5p6M55SEil1g_F6r5hJZqRbu86gT0_63nmLfwcScPwCbWfEw1NslFdNyFwQQ3LfdqFohJ_cRH52vzU9LPa-rVVu4HREMEHh5c/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
pronto agora nosso&amp;nbsp;retângulo&amp;nbsp;é o form, agora todos os componentes que usarmos tem que ser colocado em cima dele, aqui no exemplo só colocarei um botão que será nosso fechar, mas você pode brincar a vontade.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
no evento clique do botão, coloquei apenas o código para fechar o form &quot;Close();&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi5qMlHM4ZliRdtLXcTf70t25toKn-ylx0iXUycAAOkVWfmavqQpQDcj8-WPGvNRR_6JcqVKYs71R_SXxaqwA8d0E9ami5nwoyJO5KGdiPwKvgHolUISM3prM1Sq-vSjSU7AMY0czRLBU/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi5qMlHM4ZliRdtLXcTf70t25toKn-ylx0iXUycAAOkVWfmavqQpQDcj8-WPGvNRR_6JcqVKYs71R_SXxaqwA8d0E9ami5nwoyJO5KGdiPwKvgHolUISM3prM1Sq-vSjSU7AMY0czRLBU/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora vamos dar uma corzinha no&amp;nbsp;retângulo e torna-lo transparente, selecione o&amp;nbsp;retângulo selecione a opção de gradiente na cor de fundo e de a cor que desejar, veja que é ao habilitar o gradiente é mostrado uma barrinha com as mudanças de cor, que é onde você seleciona a cor para alterar, pode também adicionar mais cores ou retirar as que já existem, selecionando a paletinha da cor você vera o RGB dela e tambem o A, que é o&amp;nbsp;alpha da cor, é o que nos dará a&amp;nbsp;transparência,&amp;nbsp;&amp;nbsp;selecione as paletas de cor que desejar e diminua a porcentagem do alpha até chegar em uma&amp;nbsp;transparência&amp;nbsp;de seu agrado, no meu caso deixei 60% nas duas.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWQY9IGZnXgBqgu-EmlrI-OzM8Bc4YrO_YenECmxOHJpa6YBWHRrivyvjqwu_QxK-nDe20ASv-MdjCliFIa7qpXpfh7Gi1EZznV8L3ngwWZfb6xhAMGH6gaxnc62pQklpKpSWhcpBF9w/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWQY9IGZnXgBqgu-EmlrI-OzM8Bc4YrO_YenECmxOHJpa6YBWHRrivyvjqwu_QxK-nDe20ASv-MdjCliFIa7qpXpfh7Gi1EZznV8L3ngwWZfb6xhAMGH6gaxnc62pQklpKpSWhcpBF9w/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
pronto agora pode rodar a aplicação e ver o resultado final, depois coloque os componentes no form para ver como eles vão ficando.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDK81SSIXjBbNo-cuZlG5dkE4B_LiDMUv4JmApAL3sLMhnT2U6sNTRMVIJL6WJve8eY9LWZw1rxnmDTkODeIt-Fmt-J2C-DuzpywG9Cw7w1CRwbReSlVkY-5ZLwxI1Lvj3YTtN7DVogA/s1600/img6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDK81SSIXjBbNo-cuZlG5dkE4B_LiDMUv4JmApAL3sLMhnT2U6sNTRMVIJL6WJve8eY9LWZw1rxnmDTkODeIt-Fmt-J2C-DuzpywG9Cw7w1CRwbReSlVkY-5ZLwxI1Lvj3YTtN7DVogA/s400/img6.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que tenham gostado, se gostou da uma clicadinha no anuncio no fim do post, e curta no face..rsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
abraço a todos e até a proxima&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/9033240535053923197/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/wpf-form-transparente.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/9033240535053923197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/9033240535053923197'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/wpf-form-transparente.html' title='WPF - Form Transparente'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho1ShWxTA1j8OhOHMTm6M8vrvXSwq3rDx-4SgBZIxRL0kG1c5WO4dPJl85RU8Y76aOYBIpBAiTA_2mESm0tLl79GyV2aOO1ua2nw6SerDHRZIB6V7_ez5-3NYZ6fTumjowK5Z-HPZ1CY0/s72-c/img1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-3730567670212022338</id><published>2013-02-01T08:44:00.000-08:00</published><updated>2013-02-05T08:37:54.244-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>Iniciando com WPF - Animação simples passo a passo</title><content type='html'>Hoje vou mostrar uma pequena animação feita em WPF, mostrando desde a criação do projeto, tirando assim pequenas duvidas de quem está iniciando nessa&amp;nbsp;tecnologia&amp;nbsp;.NET.&lt;br /&gt;
no nosso exemplo usarei o Expression blend 4.&lt;br /&gt;
logo que abrimos o programa temos uma tela inicial com os&amp;nbsp;últimos&amp;nbsp;projetos abertos, um help e uns exemplos de aplicações, vamos em New Project.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisqjgn_mJUQD0OsuEmHV6n36p8GN1xzGAPR8bJmd81LdW3Xn3Zx_PpxbyBtBbD4DilamqdxtSh0WyfSTYoEGkUReFjQZe976aJhHXMjkVmaap549d_dUCW9F_wSTuotwRBXxp7gLBzE_c/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisqjgn_mJUQD0OsuEmHV6n36p8GN1xzGAPR8bJmd81LdW3Xn3Zx_PpxbyBtBbD4DilamqdxtSh0WyfSTYoEGkUReFjQZe976aJhHXMjkVmaap549d_dUCW9F_wSTuotwRBXxp7gLBzE_c/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
agora será mostrado as opções de projetos, temos WPF que é uma aplicação desktop, Silverlight que é uma aplicação rica para web, e no meu caso tenho também instalado o template para Windows Phone que é a nova plataforma&amp;nbsp;móvel&amp;nbsp;da microsoft, vamos escolher WPF application.&lt;br /&gt;
Aqui também podemos definir qual será a linguagem usada no code-behind da aplicação que pode ser C# ou VB.NET, no nosso caso não usaremos nem uma linha de código, mas vou deixar selecionado C#.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5RZ-7CJu0B40r3j5FpHY7S0sp9x_8KTDRXj7N-yt2tvDkp7b5TXymXV6Zu4D8KIX5PW1mO7ruji6AQvs3Yb8hNtHBU9qShnww3xeeUdf73mzXgkrj58lJPjgx-GLlvqveqEE_mi99rSQ/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5RZ-7CJu0B40r3j5FpHY7S0sp9x_8KTDRXj7N-yt2tvDkp7b5TXymXV6Zu4D8KIX5PW1mO7ruji6AQvs3Yb8hNtHBU9qShnww3xeeUdf73mzXgkrj58lJPjgx-GLlvqveqEE_mi99rSQ/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
pronto nosso projeto está criado, temos uma janela em branco para trabalharmos, do lado esquerdo temos uma paleta com os componentes existentes e opções para manipulação dos objetos, uma paleta com varias abas com o&amp;nbsp;conteúdo&amp;nbsp;do projeto, as triggers dos objetos ( que vamos ver já já ), os controles&amp;nbsp;disponíveis e as&amp;nbsp;states e parts deles, em baixo temos os objetos e a timeLine.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
do lado direito temos as propriedades, os eventos, nosso resource e data do projeto.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeA3OwZJNVE-UGvw0L0UWkksHCioLRVS0FERTEtELwHyBQz_de_MOkOY0aQWqcCp_dB8hJK-oou2IOJobWzHD4TF0fBnWUCWFgsvyOB4f9opZPP6Wwb9xUiLVy6webvYlH5XG10FNl6ek/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeA3OwZJNVE-UGvw0L0UWkksHCioLRVS0FERTEtELwHyBQz_de_MOkOY0aQWqcCp_dB8hJK-oou2IOJobWzHD4TF0fBnWUCWFgsvyOB4f9opZPP6Wwb9xUiLVy6webvYlH5XG10FNl6ek/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
primeiro vamos dar uma corzinha no fundo da janela, afinal estamos mexendo com WPF..rsrs...selecione na paleta de objetos o LayoutRoot, nas propriedades dele temos o backgroud, vai estar selecionado a opção solid color brush, que é a segunda opção, vamos colocar na terceira que é Gradient brush, vamos ter um degradê com duas cores, preto e brando, podemos adicionar quantas cores quisermos e mesclar de diversas maneiras, no meu caso só mudei o preto para azul, você pode ficar a vontade e pintar do seu gosto.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDim_t4_uRz0M8KCUx1uBQ3IaJ2d0nkL7JYngghzwbET2lW_Ymz-FBwIhWErVbdr46CzOOYx9GHKZnqVfT26F8hYNkaPSwmNLf9LpbXjAei_bBvI7lyMvbY8WwD3N7CxxQFGfd6frqYIU/s1600/img4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDim_t4_uRz0M8KCUx1uBQ3IaJ2d0nkL7JYngghzwbET2lW_Ymz-FBwIhWErVbdr46CzOOYx9GHKZnqVfT26F8hYNkaPSwmNLf9LpbXjAei_bBvI7lyMvbY8WwD3N7CxxQFGfd6frqYIU/s400/img4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora vamos colocar um botão, que vai acionar nossa animação, e um textbox que vai ser o objeto animado, vá a paleta da esquerda e arraste esses dois componentes para a tela, deve ficar mais ou menos assim:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhjfVQzVUvmuiqyQK7kHdDwzTqwfLyl4bwkOVgc8Hr5BuK9FuiQCIgHi84h_PzRWL0NjCA3fJZi5Kwq9pz4Cn4C0HBmpXKyjYvj0z7H1uosTsA1tdGNI0AQa9EN3_vSdg_CmGcCa7-VuE/s1600/img11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhjfVQzVUvmuiqyQK7kHdDwzTqwfLyl4bwkOVgc8Hr5BuK9FuiQCIgHi84h_PzRWL0NjCA3fJZi5Kwq9pz4Cn4C0HBmpXKyjYvj0z7H1uosTsA1tdGNI0AQa9EN3_vSdg_CmGcCa7-VuE/s400/img11.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora só para explorarmos um pouquinho mais os recursos, vamos colocar uma sombra no textbox, selecione ele e nas propriedades do lado direito vai encontrar uma opção EFECT, clique no botão New ao lado dessa opção e na janela que abrir seleciona o DropShadowEffect, depois de selecionar essa opção, você tera uma série de propriedades referentes ao efeito que podem ser customizadas conforme seu gosto, vou deixar padrão mesmo mas pode fuçar a vontade... =D&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1LLvO4MqmyrLOE_w29gU3oFR0iGz4lUMjWieMGb8nzT8VJGMlt6AqHny8TJdKfpGXe0Ie5Zn3GxaTws_yf9fd3DRbPodudhF_q0bR7qXBDECaS-_AvlcqwSHry1I1LpchLLHOrmmnE3Y/s1600/img5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1LLvO4MqmyrLOE_w29gU3oFR0iGz4lUMjWieMGb8nzT8VJGMlt6AqHny8TJdKfpGXe0Ie5Zn3GxaTws_yf9fd3DRbPodudhF_q0bR7qXBDECaS-_AvlcqwSHry1I1LpchLLHOrmmnE3Y/s400/img5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora vou partir para a animação, mas se você quiser ( e deve ) pode dar mais uma fuçada nas opções.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
na paleta Objects and TimeLine clique no botão com um sinal de + e será mostrado uma janela para dar o nome da animação, darei o nome de Animacao mesmo.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOvrxKKtcecD2MUzIFGyqdy6f0q2ItRbg4Ktp3MnOm2R_3mVBQqbT5YRwfeeIg8UfkG6XhFSD9Eoqq457__sjfSnn417rl6aGO6yGqNPQ6S3Qlpr0zqPS-h1-Ht0arZDhKnuHh8wQVZCg/s1600/img6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOvrxKKtcecD2MUzIFGyqdy6f0q2ItRbg4Ktp3MnOm2R_3mVBQqbT5YRwfeeIg8UfkG6XhFSD9Eoqq457__sjfSnn417rl6aGO6yGqNPQ6S3Qlpr0zqPS-h1-Ht0arZDhKnuHh8wQVZCg/s400/img6.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
vai aparecer uma linha de tempo onde podemos mudar os estados dos objetos conforme o tempo da animação&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju5F0IjGmQRn23qwININcWC8A7DCFWNqbMMC8yUYELy4KHa47MORfTOAARu-iYBVQtDPcfttt0GpBD-HRzbdvLT1NNMiY7hZjAjDANeUgkr85pqM4Wz5jmDeDUPuT7pjDcjmSDMDkYVro/s1600/img7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju5F0IjGmQRn23qwININcWC8A7DCFWNqbMMC8yUYELy4KHa47MORfTOAARu-iYBVQtDPcfttt0GpBD-HRzbdvLT1NNMiY7hZjAjDANeUgkr85pqM4Wz5jmDeDUPuT7pjDcjmSDMDkYVro/s400/img7.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
vamos selecionar o textbox que será nosso objeto animado, no tempo 0 de um clique no botão&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeA5Svqs_QgZvKw-twwmb_iw1EiNVvugXoeq6HF9BXj6jo6eN_pLh0KC2Gh7TiLF4n6HvMyG1ZVJ_AKmCBVa7IDH5ae8OX-3WvooOJhCuNhUTHD0YLd0axgcLGrJ35npp4OwfRtIQ7FZ8/s1600/btn.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeA5Svqs_QgZvKw-twwmb_iw1EiNVvugXoeq6HF9BXj6jo6eN_pLh0KC2Gh7TiLF4n6HvMyG1ZVJ_AKmCBVa7IDH5ae8OX-3WvooOJhCuNhUTHD0YLd0axgcLGrJ35npp4OwfRtIQ7FZ8/s1600/btn.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
cada vez que clicamos nesse botão e grava o estado do objeto na linha de tempo, então o que estamos fazendo é gravar no tempo zero o estado inicial do textbox, depois arrastamos a timeLine para o tempo 1 que é um segundo da animação, movimente o textbox na tela para onde vc quiser e clique no botão para salvar o estado de novo, no tempo 2 movimente de novo o textbox e clique no botão, quando achar necessário basta fechar a storeboard e a animação está pronta, veja conforme você vai gravando o estado do objeto, a timeLine vai sendo preenchida na linha do objeto selecionado.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ_RGlA0MPAOLUP0opnHxoZ_BIWKKUTadwKaysRsU8TU-xVDArk_32COpVvDpX6K6aJFaTDar9qzU27ervHSjtxPFYVHRHMspQt4DNq9Xkqhe-Dy3WSYjLl891o-UCAXk2WyYkWBCX5SU/s1600/img8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ_RGlA0MPAOLUP0opnHxoZ_BIWKKUTadwKaysRsU8TU-xVDArk_32COpVvDpX6K6aJFaTDar9qzU27ervHSjtxPFYVHRHMspQt4DNq9Xkqhe-Dy3WSYjLl891o-UCAXk2WyYkWBCX5SU/s400/img8.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
no exemplo fiz uma animação de 2 segundos usando apenas o textbox, vc pode usar todos os objetos que quiser, colocar até mais, e mexer nas propriedades que quiser, aconselho que faça isso mesmo para ir entendendo o funcionamento.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
se você rodar a aplicação assim, já vai funcionar, porem no carregamento da janela já será executado a animação e queremos que ela seja executada no click do botão, para isso iremos mexer nas triggers que vimos no começo do post.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
va na paleta do lado esquerdo na parte superior, e seleciona a aba trigger, você verá que tem um evento criado lá, que é o Window.Loaded e nesse evento a nossa animação está sendo iniciada:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVSeZykgMBtiC1OWyf2zUFuveMlHB2JCTm1g-0nxxlV0p7v9cII5_WfklgUWfx7TKFYyyIbeUvbtbafVWPgV6bL0kTmDbY3gxrvf7ZH7fJ9l_Tu5NhJzLse-7HH0v0SFWDBSF_SzxqDpE/s1600/img9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVSeZykgMBtiC1OWyf2zUFuveMlHB2JCTm1g-0nxxlV0p7v9cII5_WfklgUWfx7TKFYyyIbeUvbtbafVWPgV6bL0kTmDbY3gxrvf7ZH7fJ9l_Tu5NhJzLse-7HH0v0SFWDBSF_SzxqDpE/s400/img9.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
vamos mudar isso para o click do botão, selecione o evento e na parte de baixo dele poderemos alterar, onde esta &quot;When&quot; mude de Window, para button, (se não aparecer o button, selecione o botão na janela que ele aparece nas opções), agora do lado do button, temos os eventos dele, selecione o click e logo abaixo está o nome da Animação e a opção Begin, deixe assim mesmo.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
resumindo, quando o botão for clicado a Animação sera iniciada, é isso que queremos.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAoyxmwkEzg0KkoQQj4wLUFBhBQqw2N194mLFQ21DvHBoRHJFgurNQIKqPuY3emvoJQ7_OcF8vESHdtAsZsbhPR9rLs74XPT5Xkhic-_62P5NN60uRma1yNwf2BShmCyY71sqwa9So_F8/s1600/img12.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAoyxmwkEzg0KkoQQj4wLUFBhBQqw2N194mLFQ21DvHBoRHJFgurNQIKqPuY3emvoJQ7_OcF8vESHdtAsZsbhPR9rLs74XPT5Xkhic-_62P5NN60uRma1yNwf2BShmCyY71sqwa9So_F8/s400/img12.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
agora é só compilar a aplicação, clicar no botão e ver o resultado... =D&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
solte a imaginação e crie aplicações ricas para seus&amp;nbsp;usuários.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero que tenham gostado, e até a próxima !!! ( não esqueçam da clicadinha no anuncio...rsrs)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/3730567670212022338/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/02/iniciando-com-wpf-animacao-simples.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/3730567670212022338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/3730567670212022338'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/02/iniciando-com-wpf-animacao-simples.html' title='Iniciando com WPF - Animação simples passo a passo'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisqjgn_mJUQD0OsuEmHV6n36p8GN1xzGAPR8bJmd81LdW3Xn3Zx_PpxbyBtBbD4DilamqdxtSh0WyfSTYoEGkUReFjQZe976aJhHXMjkVmaap549d_dUCW9F_wSTuotwRBXxp7gLBzE_c/s72-c/img1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-8822628055178454830</id><published>2013-01-31T07:48:00.001-08:00</published><updated>2013-02-05T08:38:37.894-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/SqlServer"/><title type='text'>FastRepost - exportando para Excel,XML,CSV e muito mais</title><content type='html'>Continuando o ultimo post sobre o fast, vamos aprender a habilitar as exportações para diversos formatos que o Fast nos oferece.&lt;br /&gt;
vou continuar do nosso ultimo projeto, se vc não viu, basta acessar o post anterior e ver como foi criado.&lt;br /&gt;
veja que temos uma paleta no Delphi chamada &#39;FastReport 4 exports&#39;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPFK5HjaDvWdczTNPAFh8nUpNLgkHgKoSF_xQ_yGlhhT8VJMRdZ5KoqO1xB3rK-Rl6tARv5MzZSq0ZuFiRHIKBNemeheqOjuyHk8mGPowarWhYeFJDXRME_Ae8SY9YJiqgYGy7BTwvM8/s1600/img1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPFK5HjaDvWdczTNPAFh8nUpNLgkHgKoSF_xQ_yGlhhT8VJMRdZ5KoqO1xB3rK-Rl6tARv5MzZSq0ZuFiRHIKBNemeheqOjuyHk8mGPowarWhYeFJDXRME_Ae8SY9YJiqgYGy7BTwvM8/s400/img1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
cada um desses componentes é responsável por um tipo de exportação, vou colocar no nosso projeto só alguns, os que mais utilizo, mas você pode brincar a vontade:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPf1Qlncgb9_V4arhyAuvSeW_WrqaU6JQaWRC16bSGH9bjzsolTUvc7Y9nzCn8eKGqK6TmaNgdHLXAH4vXB9LZEquT9U9FnixMswdQrXsgaCb1ClRAPEBWdbE-DkSWPCJl7YWPiGyCFxw/s1600/img2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPf1Qlncgb9_V4arhyAuvSeW_WrqaU6JQaWRC16bSGH9bjzsolTUvc7Y9nzCn8eKGqK6TmaNgdHLXAH4vXB9LZEquT9U9FnixMswdQrXsgaCb1ClRAPEBWdbE-DkSWPCJl7YWPiGyCFxw/s400/img2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
usei aqui PDF,HTML,XLS,Mail,JPEG,CSV, apenas coloquei os componentes no form, não fiz mais nada, claro que o ideal não seria colocar assim solto no forme, mas sim em um DataModulo, mas não é nosso foco.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
feito isso rode o projeto e veja que agora no seu relatório apareceram as exportações para esses formatos que escolhemos:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibDg1QN157GCw5n8IjDFCVO4thGIeDk_9yeVnIYPJp8lRPRrxJSt6liHvBjoz8pGXV9JV1xYp0JQ9e5yevfXSmWfXDInA2yNpoIEcmhCs4JtIbJkzAEogNYShzI4GHRsAaKE59PAt0YHs/s1600/img3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibDg1QN157GCw5n8IjDFCVO4thGIeDk_9yeVnIYPJp8lRPRrxJSt6liHvBjoz8pGXV9JV1xYp0JQ9e5yevfXSmWfXDInA2yNpoIEcmhCs4JtIbJkzAEogNYShzI4GHRsAaKE59PAt0YHs/s400/img3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
essa foi fácil ...rsrsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero ter ajudado alguém, e se gostou, clica em um anuncio ai que já me ajuda...rsrs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
até a próxima &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/8822628055178454830/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/01/fastrepost-exportando-para-excelxmlcsv.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8822628055178454830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8822628055178454830'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/01/fastrepost-exportando-para-excelxmlcsv.html' title='FastRepost - exportando para Excel,XML,CSV e muito mais'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPFK5HjaDvWdczTNPAFh8nUpNLgkHgKoSF_xQ_yGlhhT8VJMRdZ5KoqO1xB3rK-Rl6tARv5MzZSq0ZuFiRHIKBNemeheqOjuyHk8mGPowarWhYeFJDXRME_Ae8SY9YJiqgYGy7BTwvM8/s72-c/img1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-801092679333707515</id><published>2013-01-30T11:44:00.002-08:00</published><updated>2013-02-05T08:40:46.966-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/SqlServer"/><title type='text'>Delphi conectando com SQL Server + Montando relatório com FastReport passo a passo</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Nesse post, mostrarei duas coisas simples mas importantes
para quem está começando, como conectar seu projeto delphi em um banco de dados
SQL Server, e como montar um relatório simples usando FastReport.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;estarei usando no exemplo o Delphi 2010, SQL server 2008
express e fastreport 4.0.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;inicie um projeto novo no delphi, do tipo VCL Forms, e vamos
começar, não usarei data modulo nem entrarei em detalhes sobre melhores tipos
de conexões e maneiras de se conectar pois não é o foco de hoje.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;vamos adicionar no nosso form 4 componentes e um botão, são
eles:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;TADOConnection,TADOQuery da palheta ADO&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;TfrxDBDataSet, TfrxReport da palheta do Fast&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;seu form ficará mais ou menos assim&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxNE29rXEgQECkOFUVEdDASoQqWRMLvrVUHsDEgBk8OV3nKZ1Lg0BcGgWr1qw03OGrrMjFyWOB-pTOZEMO2Y7OAy3sNI8p_6QS2Q5bsPptn0sbIxDHU5PYXcb6kDQba8zsSkjz2M3IVMY/s1600/imagem1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxNE29rXEgQECkOFUVEdDASoQqWRMLvrVUHsDEgBk8OV3nKZ1Lg0BcGgWr1qw03OGrrMjFyWOB-pTOZEMO2Y7OAy3sNI8p_6QS2Q5bsPptn0sbIxDHU5PYXcb6kDQba8zsSkjz2M3IVMY/s400/imagem1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nomeie os componentes conforme seu gosto e vamos ao que interessa, primeiro de 2 cliques no ADOConnection, na primeira tela que vai abrir clique em Build...&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcuSQT3SuQ_LlYscqBGr-TNEiG4iFsjWyYl945738h7IDtbEtM-pHsLXOX7-lmU0sWRhkc2h1Whzr8R2XoxPXtieI-CDMPQjVBZN_R4SaSTbBMsoS9zIq2BUzIDnvoOvpzsWf33iPKGjY/s1600/imagem2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcuSQT3SuQ_LlYscqBGr-TNEiG4iFsjWyYl945738h7IDtbEtM-pHsLXOX7-lmU0sWRhkc2h1Whzr8R2XoxPXtieI-CDMPQjVBZN_R4SaSTbBMsoS9zIq2BUzIDnvoOvpzsWf33iPKGjY/s400/imagem2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
na próxima tela no campo 1 coloque o nome da instancia do SQL Server, no campo 2 coloque o nome do usuário e senha e no campo 3 coloque o nome do seu banco de dados&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi83De-5Tahyphenhyphen_rjUpGhcxQGH3lu61g9j37xVDmplbz5XvLNDjGHVBeV5xw6LwUHOsQVyvm8UZQ7J75BGNU58v7xmlr7fsunHn1GyB5ns5Fen1KoTmbsIjdrjLJPbj9DqLMljhxpqSI5eiI/s1600/imagem3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi83De-5Tahyphenhyphen_rjUpGhcxQGH3lu61g9j37xVDmplbz5XvLNDjGHVBeV5xw6LwUHOsQVyvm8UZQ7J75BGNU58v7xmlr7fsunHn1GyB5ns5Fen1KoTmbsIjdrjLJPbj9DqLMljhxpqSI5eiI/s400/imagem3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
se você fez tudo certinho até aqui, já estamos conectados ao SQL server, agora vamos na propriedade SQL do componente ADOQuery, nela digite o comando sql para trazer as informações do relatório, no meu caso selecionei todos os registros da tabela Cliente &quot;select * from cliente&quot;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Agora na propriedade DataSet do &lt;span style=&quot;font-family: Calibri;&quot;&gt;TfrxDBDataSet, selecione o ADOQuery, de dois cliques no TfrxDBDataSet, se aparecerem os campos do seu select é pq deu tudo certo&amp;nbsp;, então vamos em frente.(não esqueça de deixar o &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;ADOConnection conectado, e o ADOQuery ativado )&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Agora de dois cliques no TfrxReport&amp;nbsp; para montarmos nosso relatório e você verá a seguinte tela:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAYPw38s8O7oA1Q-T45OW5yBeuhYO8nFmZfivK1EOkoMKhFwZaB-f5DbWIh0OzNkUsxzTl6ecXV2fHLDXTsjc_KL6qnpu7TSmQ6syaxYPn0zJHV7OWP5pwddIe-05zucL2CepbyIfCpZI/s1600/imagem5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAYPw38s8O7oA1Q-T45OW5yBeuhYO8nFmZfivK1EOkoMKhFwZaB-f5DbWIh0OzNkUsxzTl6ecXV2fHLDXTsjc_KL6qnpu7TSmQ6syaxYPn0zJHV7OWP5pwddIe-05zucL2CepbyIfCpZI/s400/imagem5.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
note que na palheta de dados do lado direito não vemos nossos campos, isso pq não selecionamos qual vai ser o dataSet que utilizaremos, para isso vá no menu Relatório - Dados, a janela a seguir será aberta:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvG-Y6FcPsAbLSa5gys1FQuypqhoxTtbHC3dQgftQAftiotdhn0hyPqfjBzkuYkmQ9aKz7oqPKn72xGwF9ZM0ullDFIJBZtaogoWSJWr2xK2qz0V79VhFWnN5P0FgyLRwR0w7MPhggFXo/s1600/imagem6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvG-Y6FcPsAbLSa5gys1FQuypqhoxTtbHC3dQgftQAftiotdhn0hyPqfjBzkuYkmQ9aKz7oqPKn72xGwF9ZM0ullDFIJBZtaogoWSJWr2xK2qz0V79VhFWnN5P0FgyLRwR0w7MPhggFXo/s400/imagem6.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
a janela vai mostrar todos os &lt;span style=&quot;font-family: Calibri;&quot;&gt;TfrxDBDataSet do form, como só temos um, selecionaremos ele, agora na palheta de dados iram aparecer os campos do select.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;nosso relatório terá um cabeçalho, o corpo e um rodapé, para isso vamos no menu do lado esquerdo na opção inserir banda&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzsCtQaC_3dRjNm8E0vDm-en4j-44lYjGVWZ7azEQX4rEeLq9tV6OHc6oO4fcVuHwl-7GCyKh7gC2jiznhkb-IBFeiChqB1AUdirJjpEdtWrBomMcxohluP1B2imolHuimFrszmGocqq4/s1600/imagem7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzsCtQaC_3dRjNm8E0vDm-en4j-44lYjGVWZ7azEQX4rEeLq9tV6OHc6oO4fcVuHwl-7GCyKh7gC2jiznhkb-IBFeiChqB1AUdirJjpEdtWrBomMcxohluP1B2imolHuimFrszmGocqq4/s400/imagem7.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;nela selecionaremos um Titulo de relatório, um Dados Mestre e um rodapé, ao inserir o Dados Mestre, ele vai pedir o DataSet Desejado, selecione nosso único Dataset.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;No cabeçalho coloque 3 objetos de texto, onde colocaremos o titulo de cada campo, agora arraste os campos da palheta de dados para dentro do Dados Mestre, e formate do jeito que achar melhor, até ai tranquilo, o fast tem algumas variáveis prontas como Data,Line,Page, vamos usar a page no rodapé para marcar as paginas do relatório.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Olhe a palheta do lado direito onde estão os dados, você verá que tem outras abas nela, selecione a aba variáveis, e arraste a variável Page para dentro do rodapé, se você fez tudo certinho seu relatório ficou mais ou menos assim:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmNqg-mi0-sh6yBluLGkG7GjxSM6vWxoHemI6OCN5GdjoYZeFx6jDvhoqDVYB5bCQIkgMVJp8AWhM6LV5qGK9XnVhoCeNhKoj8iRo8iXmvhGP8bBdvxLE6rQhwOq8nJepAVIxfLbTbvaQ/s1600/imagem.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmNqg-mi0-sh6yBluLGkG7GjxSM6vWxoHemI6OCN5GdjoYZeFx6jDvhoqDVYB5bCQIkgMVJp8AWhM6LV5qGK9XnVhoCeNhKoj8iRo8iXmvhGP8bBdvxLE6rQhwOq8nJepAVIxfLbTbvaQ/s400/imagem.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
pode salvar e fechar, voltamos ao form, de dois cliques no botão e coloque o seguinte código:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoqlGElZLF7EC06DMvzMOUK4aTvHqOUIs7WWRJQdq-AB7WxSywf7tKywqTC7Y60QG6Oq1mrhhLUb2LFwrJqe59diIvPgMcY5a2w7DFt1aW8Q9xY5TTQUwfHc5fsfOLZLL_7ni9jZr6LuI/s1600/imagem4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoqlGElZLF7EC06DMvzMOUK4aTvHqOUIs7WWRJQdq-AB7WxSywf7tKywqTC7Y60QG6Oq1mrhhLUb2LFwrJqe59diIvPgMcY5a2w7DFt1aW8Q9xY5TTQUwfHc5fsfOLZLL_7ni9jZr6LuI/s400/imagem4.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
rel1 é o nome que dei para o meu &lt;span style=&quot;font-family: Calibri;&quot;&gt;TfrxReport. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
pronto, agora é só compilar o projeto, clicar no botão e ver o seu relatório:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8C3hKbmSJ2P9dvo-1YsC1L91Z0_aCWwz9jX3CetVvwYYIiMJ_TzzOgfVxNyYUkm-Ir6pPSX4J1WB3sV_E3ya4QncefzkGjZhZxQmhwE2Cvmrn9DyaTQ_ymW7ShNbJZjyH1Oq9qmPhYmk/s1600/imagemFinal.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8C3hKbmSJ2P9dvo-1YsC1L91Z0_aCWwz9jX3CetVvwYYIiMJ_TzzOgfVxNyYUkm-Ir6pPSX4J1WB3sV_E3ya4QncefzkGjZhZxQmhwE2Cvmrn9DyaTQ_ymW7ShNbJZjyH1Oq9qmPhYmk/s400/imagemFinal.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
em um próximo post mostrarei como habilitar as opções do fast para exportar o relatório para Excel,PDF,HTML, mandar e-mail, e muito mais.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
espero ter ajudado alguém, se gostou da uma clicadinha em um anuncio para me dar uma ajudinha..rsrsrs&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/801092679333707515/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/01/delphi-conectando-com-sql-server.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/801092679333707515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/801092679333707515'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/01/delphi-conectando-com-sql-server.html' title='Delphi conectando com SQL Server + Montando relatório com FastReport passo a passo'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxNE29rXEgQECkOFUVEdDASoQqWRMLvrVUHsDEgBk8OV3nKZ1Lg0BcGgWr1qw03OGrrMjFyWOB-pTOZEMO2Y7OAy3sNI8p_6QS2Q5bsPptn0sbIxDHU5PYXcb6kDQba8zsSkjz2M3IVMY/s72-c/imagem1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-4162180193721498223</id><published>2013-01-29T11:51:00.001-08:00</published><updated>2013-02-05T08:41:20.706-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/SqlServer"/><title type='text'>Carregando GRID em tempo de execução X Delphi</title><content type='html'>Hoje, vamos ver como carregar uma grid em tempo de execução.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
No exemplo&amp;nbsp;a seguir eu usei o grid da DevExpress, mas creio que
outras grids tem as mesmas propriedades, então basta encontra-las e usar que
vai dar certo.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Supondo que temos uma tabela CLIENTE,&amp;nbsp; com os campos CLI_ID,CLI_ NOME,CLI_ ENDERECO,
primeiro passo é montar o SQL dando apelidos aos campos, pois esses apelidos
irão aparecer como título da coluna no grid, exemplo:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;select CLI_ID
as Codigo,CLI_NOME as Nome, CLI_ENDERECO as Endereco from CLIENTE&lt;/span&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #4f81bd; mso-themecolor: accent1;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Até ai
tranquilo, nada de novidade, esse comando vai estar em uma query, que podemos
criar em tempo de execução , e não podemos esquecer do dataSource, vamos ao
código.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//dentro da
procedure ou evento, na seção var, criamos as variável que vamos usar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;//aqui estou usando a query do IBO, mas se for usar outra, basta substituir o tipo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;qryGrid : TIBOQuery;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;dsGrid : TDataSource;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//agora no
momento que achar necessário vamos instanciar os objetos , passar o sql, fazer
as ligações e //pronto.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//instanciando
os objetos&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;qryGrid :=
TIBOQuery.Create(Application);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;qryGrid.
IB_Connection :=&amp;nbsp; //aqui você passa a sua conexão com o banco
de dados&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;dsGrid :=
TDataSource.Create(Application);&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//agora vamos
passar o SQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;qryGrid.close;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;qryGrid.sql.clear;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;qryGrid.sql.add(&#39; select CLI_ID as Codigo,CLI_NOME as
Nome, CLI_ENDERECO as Endereco from CLIENTE&#39;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;qryGrid.open;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//agora vamos
passar a qry para o dataSource&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;dsGrid.dataSet
:= qryGrid;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//agora vamos
limpar a grid e passar o dataSource com as informações para ela.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;gridDBTableView1.DataController.DataSource&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; := nil;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;gridDBTableView1.ClearItens;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;gridDBTableView1.DataController.DataSource := dsGrid;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;gridDBTableView1.DataController.CreateAllItens(True);&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//com isso já
vai dar certo, não esquencendo que a grid que usei no exemplo é a da &amp;nbsp;DevExpress,
mas não //tem segredo, passando o dsGrid para o dataSource da grid já &amp;nbsp;funciona
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//agora se
você quiser configurar a largura das colunas, basta acessa-las pelo índice.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;gridDBTableView1.Columns[0].
Width := 65;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;gridDBTableView1.Columns[1].&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; Width
:= 65;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;gridDBTableView1.Columns[2].&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt; Width
:= 65;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
pronto,
fizemos toda a configuração e os componentes query e dataSource em tempo de
execução, assim temos mais controle sobre o código.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
espero ter
ajudado alguém, e não esqueçam de dar uma clicadinha nos anúncios da
página.rsrs&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/4162180193721498223/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/01/carregando-grid-em-tempo-de-execucao-x.html#comment-form' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/4162180193721498223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/4162180193721498223'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/01/carregando-grid-em-tempo-de-execucao-x.html' title='Carregando GRID em tempo de execução X Delphi'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-1292013373244324362</id><published>2013-01-28T12:03:00.000-08:00</published><updated>2013-02-05T08:41:38.101-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/SqlServer"/><title type='text'>Gravar data zerada Delphi X SQL Server (componente dateEdit)</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;boa tarde a todos,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;tive um problema com campo data ( pra variar ) usando um dateEdit,
que no meu caso é da DevExpress, no delphi e SQL Server, tive que fazer um
pequeno ajuste de emergência , do qual não me orgulho muito, mas até o momento
tem me servido, e como não achei nada melhor pra substituir, vou mostrar aqui e
espero que ajude alguém.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;em uma determinada situação estava precisando gravar um
campo do tipo data zerado no banco de dados, mas o valor que vem do dateEdit
não preenchido não é aceito no delphi e nem no SQL, ou da algum erro de data
invalida ou grava a primeira data valida existente&lt;span style=&quot;background-color: white;&quot;&gt; 30/12/1899&lt;/span&gt;, então fiz o seguinte procedimento.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;o componente sem preencher
grava no meu objeto o valor&amp;nbsp; 00/00/0000,
então pensei em verificar :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;if obj.data = 00/00/0000 then qry.data := null else qry.data :=
obj.data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;ou seja, se o campo data
do meu objeto for 00/00/0000, passo para a qry o valor null, assim não gravo na
data daquele registro, se não, eu gravo o valor preenchido.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;mas para a minha surpresa
o delphi da um erro de ponto flutuante e não funciona, então fiz a seguinte
alteração&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;if datetostr(obj.data) = &#39;00/00/0000&#39;
then qry.data := null else qry.data := obj.data;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;e assim funcionou
certinho, pois se faço a comparação sem a conversão de data para texto, o
delphi tb da um erro falando que não posso comparar um objeto data com uma
string, então essa foi a maneira que encontrei.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;se vc usa algum componente
que retorna essa mesma informação, esse metodo pode te ajudar, se sua duvida
for só como gravar a data zerada no banco, passe no sql do insert o valor null.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;espero ter ajudado alguem&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;até a proxima, e não
esqueçam de dar uma clicadinha em algum anuncio..rsrs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-position: initial initial; background-repeat: initial initial;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-position: initial initial; background-repeat: initial initial;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/1292013373244324362/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2013/01/gravar-data-zerada-delphi-x-sql-server.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/1292013373244324362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/1292013373244324362'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2013/01/gravar-data-zerada-delphi-x-sql-server.html' title='Gravar data zerada Delphi X SQL Server (componente dateEdit)'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-4753779796036936882</id><published>2012-12-13T10:28:00.001-08:00</published><updated>2013-02-05T08:43:36.512-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/SqlServer"/><title type='text'>Pedido de confirmação de e-mail Delphi + Synapse ( TMimemess) </title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;PT-BR&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;&amp;#45;-&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;

Boa tarde pessoal,&lt;br /&gt;
depois de muitos anos sem postar nada, aqui estou eu de volta, estive
ocupado mas agora pretendo voltar com n&lt;span style=&quot;background-color: white;&quot;&gt;ovos assuntos.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;essa semana penei para resolver um problema de um código que peguei para dar
manutenção em &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;Delphi&lt;/span&gt;&lt;/span&gt;, o código era para enviar
e-&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt; usando a classe &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;TMimemess&lt;/span&gt;&lt;/span&gt;
do &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;Synapse&lt;/span&gt;&lt;/span&gt;, a função estava pronta
e funcionando certinho, mas&amp;nbsp; tive que incluir um pedido de confirmação de leitura do e-&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;,
como tive dificuldade de encontrar a solução no &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;google&lt;/span&gt;&lt;/span&gt;,
já que a maioria dos exemplos não usava essa classe, juntei as informações que
achei na net com uma função de um componente chamado &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;ACBR&lt;/span&gt;&lt;/span&gt;,
que usamos aqui para geração de &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;NFe&lt;/span&gt;&lt;/span&gt; e funcionou.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;então vamos lá, espero que ajude alguém..&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;rs&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;depois de criada a instancia da classe &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;TMimemess&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;m := &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;TMimemess&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;create&lt;/span&gt;&lt;/span&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;podemos
adicionar algumas &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;características&lt;/span&gt;&lt;/span&gt; nele como, arquivos
anexos no e-&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt;,cabeçalhos,o &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;email&lt;/span&gt;&lt;/span&gt; de quem esta enviando,
assunto, etc:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; mso-ansi-language: EN-US;&quot;&gt;m.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;AddPartBinary&lt;/span&gt;&lt;/span&gt;(&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;TStream&lt;/span&gt;&lt;/span&gt;,&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;,&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;TMimePart&lt;/span&gt;&lt;/span&gt;)
// Adicionando &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;an&lt;/span&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;exos&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; mso-ansi-language: EN-US;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; mso-ansi-language: EN-US;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;m.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;header&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;toli&lt;span style=&quot;background-color: white;&quot;&gt;st&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;add&lt;/span&gt;&lt;/span&gt;(&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;)
// Adicionando Cabeçalhos&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;m.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;header&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;From&lt;/span&gt;&lt;/span&gt;
// &lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;email&lt;/span&gt;&lt;/span&gt; de quem está enviando&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;m.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;header&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;subject&lt;/span&gt;&lt;/span&gt;
// Assunto&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;e muitas outras conforme sua necessidade, no nosso
&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;cas&lt;/span&gt;&lt;/span&gt;o queremos pedir confirmação de leitura, vamos usar
um cabeçalho &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;personali&lt;/span&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;zado&lt;/span&gt;&lt;/span&gt;, com esses &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;ca&lt;/span&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;beç&lt;/span&gt;&lt;/span&gt;alhos podemos agregar
varias funcionalidades pré definidas, a nossa é uma chamada &lt;/span&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;b&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;Disposition&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;-&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;Notification&lt;/span&gt;&lt;/span&gt;-To&lt;/b&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;, que fica da
seguinte maneira.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;
&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; mso-ansi-language: EN-US;&quot;&gt;m.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;Header&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;CustomHeaders&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;Add&lt;/span&gt;&lt;/span&gt;(&#39;Disposition-&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;Notification&lt;/span&gt;&lt;/span&gt;-To:
&#39;+&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;email&lt;/span&gt;&lt;/span&gt;);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;onde está a &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;variável&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;email&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt; &lt;/b&gt;coloque o e-&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt; que vai receber a confirmação.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;depois de preencher todas as informações para sua
necessidade, basta usar a&amp;nbsp; &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;procedure&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;EncodeMessage&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;m.&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;EncodeMessage&lt;/span&gt;&lt;/span&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;depois disso, pode continuar o envio do e-&lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;mail&lt;/span&gt;&lt;/span&gt; e &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;vc&lt;/span&gt;&lt;/span&gt; recebera sua confirmação
de leitura.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;por hoje é só...caso alguém tenha mais alguma duvida
referente esse assunto basta pedir nos &lt;span style=&quot;background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto auto;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-position-x: 0%; background-position-y: 0%;&quot;&gt;comentários&lt;/span&gt;&lt;/span&gt; que eu explico melhor.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;um abraço a todos que lerem, e até mais &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt; &lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;
&lt;/span&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;ctl00_ctl00_ctl00_CP1_CP2_CP3_FormView1_DescricaoLabel&quot;&gt;&lt;/span&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Tabela normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin-top:0cm;
 mso-para-margin-right:0cm;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0cm;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:&quot;Times New Roman&quot;;
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/4753779796036936882/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2012/12/pedido-de-confirmacao-de-e-mail-delphi.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/4753779796036936882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/4753779796036936882'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2012/12/pedido-de-confirmacao-de-e-mail-delphi.html' title='Pedido de confirmação de e-mail Delphi + Synapse ( TMimemess) '/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-9142843027563710325</id><published>2009-06-22T08:13:00.000-07:00</published><updated>2013-02-05T08:43:57.325-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/Firebird"/><title type='text'>Rave Report - Problema com Filtro de Relatório</title><content type='html'>Hoje postarei aqui a solução de um pequeno problema que estava me tirando do sério, e pelo que percebi nas minhas buscas pela intenet muitas pessoas tem esse problema.&lt;br /&gt;
Fiz um relatório com o rave report com filtro de data, e também de código de produto, fiz o seguinte esquema, coloquei no comando SQL da minha Query, os parâmetros de data inicial e final e o codigo do produto, e no evento click do botão para gerar o relatório eu passo os parâmetros e executo o relatório, a primeira vez que usei esse esquema funcionou certinho, estava feliz da vida, mas quando fui fazer a mesma coisa em outro projeto, mandava gerar o relatório e ele não mostrava nada, depois de muito me descabelar, encontrei outra solução, trazer todas as informações do banco na Query e filtrar no client Data Set, e quando mandava gerar o relatório, nadaaaa, ele mostrava toda a informação do banco, como se o filtro não estive-se funcionando, foi então que enxerguei a luz, era algo tão simples que nem passava pela minha cabeça....o form que eu chamava o relatório estava como AUTO-CREATE....foi só tirar ele dessa opção que as duas maneiras que eu tinha feito funcionaram....=)&lt;br /&gt;
então fica ai a dica para quem estiver com o mesmo problema que eu :&lt;br /&gt;
VÁ EM - PROJECT -OPTIONS - e tire o form da opção AUTO-CREATE....e pronto, seja feliz&lt;br /&gt;
&lt;br /&gt;
e para quem não sabe fazer o filtro nem passar parâmetros para a query aqui vai:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;PASSANDO PARÂMETRO:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
qry_relatorio.Close;&lt;br /&gt;
cds_relatorio.Close;&lt;br /&gt;
qry_relatorio.ParamByName(&#39;data_ini&#39;).AsDate := StrToDate(MaskEdit1.Text);&lt;br /&gt;
qry_relatorio.ParamByName(&#39;data_final&#39;).AsDate := StrToDate(MaskEdit2.Text);&lt;br /&gt;
qry_relatorio.ParamByName(&#39;codigo&#39;).AsInteger := StrToInt(edit11.Text);&lt;br /&gt;
qry_relatorio.ExecSQL();&lt;br /&gt;
qry_relatorio.Open;&lt;br /&gt;
qry_relatorio.Refresh;&lt;br /&gt;
cds_relatorio.Open;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;FILTRANDO O CLIENT DATA SET:&lt;/span&gt; (AQUI ESTOU FILTRANDO APENAS POR DATA)&lt;br /&gt;
&lt;br /&gt;
cds_fluxo.Close;&lt;br /&gt;
cds_fluxo.Filtered := false;&lt;br /&gt;
cds_fluxo.Filter := &#39;data &amp;gt;=&#39;+ &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;QuotedStr&lt;/span&gt;(&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;Edit&lt;/span&gt;1.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;Text&lt;/span&gt;)+&#39;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;and&lt;/span&gt; data &amp;lt;=&#39;+ &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;QuotedStr&lt;/span&gt;(&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;Edit&lt;/span&gt;2.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;Text&lt;/span&gt;);&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_7&quot;&gt;cds&lt;/span&gt;_fluxo.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_8&quot;&gt;Filtered&lt;/span&gt; := &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_9&quot;&gt;true&lt;/span&gt;;&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_10&quot;&gt;cds&lt;/span&gt;_fluxo.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_11&quot;&gt;Open&lt;/span&gt;;&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_12&quot;&gt;cds&lt;/span&gt;_fluxo.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_13&quot;&gt;Refresh&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
Espero ter ajudado, um abraço a todos e até a &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_14&quot;&gt;próxima&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/9142843027563710325/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2009/06/rave-report-problema-com-filtro-de.html#comment-form' title='5 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/9142843027563710325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/9142843027563710325'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2009/06/rave-report-problema-com-filtro-de.html' title='Rave Report - Problema com Filtro de Relatório'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-7041317795070584027</id><published>2009-06-12T06:33:00.000-07:00</published><updated>2013-02-05T08:44:20.534-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/Firebird"/><title type='text'>Usando Opendialog</title><content type='html'>Usar o &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;Opendialog&lt;/span&gt; é uma coisa bem simples, mas se você está começando a programar em &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;Delphi&lt;/span&gt;, como eu, certamente terá duvidas, então vou explicar uma utilidade muito boa dele, copiar o caminho de um arquivo para o texto de uma &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;Edit&lt;/span&gt;, tendo o caminho do arquivo nessa &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;edit&lt;/span&gt; poderemos trabalhar com ele facilmente, no meu caso usei para poder trabalhar com a importação de um arquivo &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;TXT&lt;/span&gt;, mãos a obra:&lt;br /&gt;
&lt;br /&gt;
Primeiro crie um &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;projeto&lt;/span&gt; novo e monte a tela com os seguintes componente: 1 &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;label&lt;/span&gt;, 1 &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_7&quot;&gt;edit&lt;/span&gt;, 1 botão e um &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_8&quot;&gt;TOpenDialog&lt;/span&gt;, mais ou menos como a figura abaixo:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9ic77Zzv5n217ed_Cwl0o1ECIxrLMxsiTlTeJgRoZNQQjGQvHSAIcZfgSIAR8vrpUBUAS2tu93hgXXJlu24Ni4WLKNVQwoiisXClIcwz8h0tACrz7wtnRWTnhuAPhumIetV_LHpqzwy0/s1600-h/imagen1.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5346473933397197810&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9ic77Zzv5n217ed_Cwl0o1ECIxrLMxsiTlTeJgRoZNQQjGQvHSAIcZfgSIAR8vrpUBUAS2tu93hgXXJlu24Ni4WLKNVQwoiisXClIcwz8h0tACrz7wtnRWTnhuAPhumIetV_LHpqzwy0/s320/imagen1.jpg&quot; style=&quot;cursor: pointer; display: block; height: 200px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;Depois no evento &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_9&quot;&gt;click&lt;/span&gt; do botão coloque o seguinte código:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_10&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_11&quot;&gt;OpenDialog&lt;/span&gt;1.Execute &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_12&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_13&quot;&gt;begin&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_14&quot;&gt;edit&lt;/span&gt;1.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_15&quot;&gt;Text&lt;/span&gt; := &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_16&quot;&gt;OpenDialog&lt;/span&gt;1.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_17&quot;&gt;FileName&lt;/span&gt;;&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_18&quot;&gt;end&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_19&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_20&quot;&gt;begin&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_21&quot;&gt;ShowMessage&lt;/span&gt;(&#39;Favor &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_22&quot;&gt;selecionar&lt;/span&gt; o arquivo !!!&#39;)&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_23&quot;&gt;end&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
pronto, o caminho do arquivo irá aparecer na &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_24&quot;&gt;edit&lt;/span&gt;, com isso você consegue trabalhar de varias maneiras com o arquivo.&lt;br /&gt;
Espero ter ajudado, um abraço a todos e até a &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_25&quot;&gt;próxima&lt;/span&gt;.</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/7041317795070584027/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2009/06/usando-opendialog.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/7041317795070584027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/7041317795070584027'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2009/06/usando-opendialog.html' title='Usando Opendialog'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9ic77Zzv5n217ed_Cwl0o1ECIxrLMxsiTlTeJgRoZNQQjGQvHSAIcZfgSIAR8vrpUBUAS2tu93hgXXJlu24Ni4WLKNVQwoiisXClIcwz8h0tACrz7wtnRWTnhuAPhumIetV_LHpqzwy0/s72-c/imagen1.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-8051108840346280675</id><published>2009-06-03T08:53:00.000-07:00</published><updated>2013-02-05T08:45:07.040-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/SqlServer"/><title type='text'>SQL Server - &quot;não é possivel criar uma nova transação porque a capacidade foi excedida&quot;</title><content type='html'>Como expliquei anteriormente, quando usamos componentes para conectar o &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;Delphi&lt;/span&gt; com algum banco de dados, devemos deixar todos os &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;componentes&lt;/span&gt; desconectados e só conecta-los quando for executar alguma &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;transação&lt;/span&gt;, isso sempre funcionou comigo usando &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;firebird&lt;/span&gt;, mas quando fui usar o &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;delphi&lt;/span&gt; com SQL &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;Server&lt;/span&gt;, mesmo deixando todos eles desconectados, me deparei com o seguinte erro:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;não é &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;possível&lt;/span&gt; criar uma nova &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_7&quot;&gt;transação&lt;/span&gt; porque a capacidade foi excedida&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_8&quot;&gt;Fiz&lt;/span&gt; de tudo para funcionar e nada,  já estava ficando louco quando descobri o seguinte evento do &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_9&quot;&gt;ClientDataSet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_10&quot;&gt;BeforeApplyUpdates&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Foi o que salvou minha vida (&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_11&quot;&gt;pelo menos&lt;/span&gt; até o presente momento), &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_12&quot;&gt;selecionei&lt;/span&gt; todos os meus &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_13&quot;&gt;ClientDataSet&lt;/span&gt; e nesse evento coloquei o comando:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_14&quot;&gt;SQLConnection&lt;/span&gt;1.&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_15&quot;&gt;CloseDataSets&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Ou seja, depois que ele &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_16&quot;&gt;efetua&lt;/span&gt; qualquer &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_17&quot;&gt;transação&lt;/span&gt; com o banco, ele fecha o &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_18&quot;&gt;dataSet&lt;/span&gt;, eu tinha feito isso manualmente no fechamento de cada &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_19&quot;&gt;form&lt;/span&gt;, mas não foi suficiente, agora com esse evento tudo está funcionando.&lt;br /&gt;
Então fica ai a dica pra quem estiver com o mesmo problema.&lt;br /&gt;
Até mais;</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/8051108840346280675/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2009/06/sql-server-nao-e-possivel-criar-uma.html#comment-form' title='10 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8051108840346280675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/8051108840346280675'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2009/06/sql-server-nao-e-possivel-criar-uma.html' title='SQL Server - &quot;não é possivel criar uma nova transação porque a capacidade foi excedida&quot;'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-5618378973255360825</id><published>2009-06-01T08:15:00.000-07:00</published><updated>2013-02-05T08:46:19.540-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi/Firebird"/><title type='text'>Relatórios - Rave Report -  &quot;como receber uma variável do Delphi&quot;</title><content type='html'>&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: times new roman;&quot;&gt;Se você pretende gerar um relatório com as informações do seu sistema com o &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;Rave&lt;/span&gt; &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;Report&lt;/span&gt; e está começando a usar agora, certamente vai se deparar com essa dificuldade, &lt;span style=&quot;color: red;&quot;&gt;&quot;como receber uma &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;variável&lt;/span&gt; do &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;Delphi&lt;/span&gt; ?&quot; &lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;&lt;span style=&quot;font-family: times new roman;&quot;&gt;Não é nenhum bicho de 7 cabeças, mas se você não ler o que vou postar, dificilmente vai conseguir fazer, se você tem os campos prontos no seu banco de dados, &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;ótimo&lt;/span&gt;, é só &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;coloca-los&lt;/span&gt; no &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;Rave&lt;/span&gt; e usar normalmente, assim como em outros geradores de Relatório (esse passo a passo eu mostro depois), agora se você precisa de um valor que está sendo &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: times new roman;&quot;&gt;calculado na sua aplicação e não está sendo salvo em nenhuma tabela do seu banco, vai ter que usar passagem por &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-family: times new roman;&quot;&gt;&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_7&quot;&gt;parâmetro&lt;/span&gt;, olhe o exemplo abaixo e tudo ficará claro pra você:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Imagine que temos uma variável global em nosso sistema, onde é gravada a versão do sistema e nos relatérios voê tem que imprimir o número da versão ou seja temos que imprimir o conteúdo dessa variável que foi declarada lá dentro do projeto Delphi.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;O conteúdo dessa variável deve ser passado como parâmetro na hora de imprimir o relatório e o Rave “enxerga” essa variável como se fosse uma variável interna dele.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%; font-weight: bold;&quot;&gt;No Delphi&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Crie uma nova aplicação e deixe-a conforme a figura abaixo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJDCAFUtFJ_2DcBF19yhyphenhyphen3EFPC7Waql621tmNLuCx97PA0Afg-BLcG4SbkCWM-dSyFYT9xrOyyT7Zpc-FRaajpb7H7F08lqntllldba7gCCQpKeWr5Kk_z9zA01rJvC723qZ5VhqQLhKA/s1600-h/rave1.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5342384096482714274&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJDCAFUtFJ_2DcBF19yhyphenhyphen3EFPC7Waql621tmNLuCx97PA0Afg-BLcG4SbkCWM-dSyFYT9xrOyyT7Zpc-FRaajpb7H7F08lqntllldba7gCCQpKeWr5Kk_z9zA01rJvC723qZ5VhqQLhKA/s320/rave1.jpg&quot; style=&quot;cursor: pointer; display: block; height: 107px; margin: 0px auto 10px; text-align: center; width: 210px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Agora dê um duplo clique no RvProject e o Rave Visual Design será aberto, na guia&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt; Report, selecione o componente Region, dimensione ele de forma que ocupe toda a área que será impressa.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;No Tree Panel em Report Library e escolha o relatório Report1, após isso clique em Parameters&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt; n&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt; Object Inspector  digite o nome de nosso parâmetro que será Versao&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Adicione um Band Component e marque a opção Body Header que esta localizada na opção Band Style.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Adicione um DataText e clique na opção DataField, no Project Parameters selecione o parâmetro que acabamos de criar que foi o versão, após selecionar clique em Insert Parameter&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;O Resultado final será conforme a figura abaixo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2qrGYRVkvvMIymFxnYmjxWZZ4v7h7Ge_U63oCknH7Mjg3TjfkCpc4Wzrk-YnlR_7rKDGpryv554f2cWuX8_KDLxs0ZAlU1j7qeT60TCVKkmRXtBo1NjdYk7VlBWz2QdfTPOw0YK-cibw/s1600-h/rave2.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5342384306350839042&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2qrGYRVkvvMIymFxnYmjxWZZ4v7h7Ge_U63oCknH7Mjg3TjfkCpc4Wzrk-YnlR_7rKDGpryv554f2cWuX8_KDLxs0ZAlU1j7qeT60TCVKkmRXtBo1NjdYk7VlBWz2QdfTPOw0YK-cibw/s320/rave2.jpg&quot; style=&quot;cursor: pointer; display: block; height: 297px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Salve seu projeto, como Project1 mesmo, agora volte lá no Delphi e no RvProject associe a propriedade ProjectFile ao projeto que acabamos de criar&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHtvVybn3P3YPlmkxcPIvPEw8mw74snXTtyA8i9fOuED9uMI1G-0G6Nz4fgOx1RtrqUwPiPckzsAIa_qFZyu4UBr9eFxV_48Q-cX36-GyAquFxld93V9XqSPurG30PKyVtdl062ZyQ1no/s1600-h/rave3.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5342384586084619122&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHtvVybn3P3YPlmkxcPIvPEw8mw74snXTtyA8i9fOuED9uMI1G-0G6Nz4fgOx1RtrqUwPiPckzsAIa_qFZyu4UBr9eFxV_48Q-cX36-GyAquFxld93V9XqSPurG30PKyVtdl062ZyQ1no/s320/rave3.jpg&quot; style=&quot;cursor: pointer; display: block; height: 285px; margin: 0px auto 10px; text-align: center; width: 190px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;_x0000_i1027&quot; type=&quot;#_x0000_t75&quot; alt=&quot;&quot; style=&quot;&#39;width:142.5pt;height:213.75pt&#39;&quot;&gt;  &lt;v:imagedata src=&quot;file:///C:\Users\Marcio\AppData\Local\Temp\msohtmlclip1\01\clip_image003.jpg&quot; href=&quot;http://www.delphibr.com.br/artigos/param_rave_arquivos/image006.jpg&quot;&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Adicione o seguinte código no Button. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;procedure      TForm1.Button1Click(Sender: TObject);&lt;br /&gt;begin&lt;/span&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;      //Seta o Parametro versão com o conteúdo do Label1&lt;br /&gt;      RvProject1.SetParam(&#39;Versao&#39;,Label1.Caption);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;      //Executa o relatorio&lt;br /&gt;      RvProject1.ExecuteReport(&#39;Report1&#39;);&lt;br /&gt;end;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%;&quot;&gt;Agora é só compilar, e testar e nosso resultado final será semelhante a imagem abaixo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNDZCwGBXD1eem1xLo982tDTv-C1o_0QRxTWnqjs4dZS8_lPpOsaoQ7tMVH1ECLXgZH5p9nfuuNlmU-8YbOVi455hFFZ6YahFutztoYHC1UfCQlAxnUlGC0Fgr3tL-JxaVI8p49JORItM/s1600-h/rave4.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5342384865122390338&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNDZCwGBXD1eem1xLo982tDTv-C1o_0QRxTWnqjs4dZS8_lPpOsaoQ7tMVH1ECLXgZH5p9nfuuNlmU-8YbOVi455hFFZ6YahFutztoYHC1UfCQlAxnUlGC0Fgr3tL-JxaVI8p49JORItM/s320/rave4.jpg&quot; style=&quot;cursor: pointer; display: block; height: 235px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%; font-weight: bold;&quot;&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id=&quot;_x0000_i1028&quot; type=&quot;#_x0000_t75&quot; alt=&quot;&quot; style=&quot;&#39;width:258.75pt;height:189pt&#39;&quot;&gt;  &lt;v:imagedata src=&quot;file:///C:\Users\Marcio\AppData\Local\Temp\msohtmlclip1\01\clip_image004.jpg&quot; href=&quot;http://www.delphibr.com.br/artigos/param_rave_arquivos/image008.jpg&quot;&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;; font-size: 100%; font-weight: bold;&quot;&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;;&quot;&gt;Preview do Rave com o Valor do parâmetro que foi recebido&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: times new roman; font-size: 100%;&quot;&gt;Pronto, agora pode por a caixola pra funcionar e gerar o relatório que quizer !!!! boa sorte !!!&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;; font-size: 12;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/5618378973255360825/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2009/06/relatorios-rave-report.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/5618378973255360825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/5618378973255360825'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2009/06/relatorios-rave-report.html' title='Relatórios - Rave Report -  &quot;como receber uma variável do Delphi&quot;'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJDCAFUtFJ_2DcBF19yhyphenhyphen3EFPC7Waql621tmNLuCx97PA0Afg-BLcG4SbkCWM-dSyFYT9xrOyyT7Zpc-FRaajpb7H7F08lqntllldba7gCCQpKeWr5Kk_z9zA01rJvC723qZ5VhqQLhKA/s72-c/rave1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4636861792553932297.post-7601214124311153275</id><published>2009-05-29T08:15:00.001-07:00</published><updated>2013-02-05T08:48:15.529-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Csharp/SqlServer"/><title type='text'>C# - Aplicação em Camadas</title><content type='html'>Hoje vou postar algo sobre &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;Csharp&lt;/span&gt;/&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;SqlSever&lt;/span&gt;, como &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;você&lt;/span&gt; já deve saber, hoje em dia o que domina o mercado são ferramentas O.O (Orientada a &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;Objeto&lt;/span&gt;), e aplicações feitas em camadas.&lt;br /&gt;
A ferramenta que eu mais gosto é &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;Csharp&lt;/span&gt;, acho ela muito completa, tanto quanto JAVA, e em aplicações &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;Desktop&lt;/span&gt; acho bem melhor, ainda estou aprendendo a usar os recursos dessa poderosa ferramenta e coloquei no &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;rapidshare&lt;/span&gt; uma aplicação feita em camadas explicada passo a passo(é muito grande para eu colocar aqui..rs).&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://rapidshare.com/files/238563434/Desenvolvimento_Multicamadas_em_Csharp.doc.html&quot;&gt;http://rapidshare.com/files/238563434/Desenvolvimento_Multicamadas_em_Csharp.doc.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Peguei esse documento na &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_7&quot;&gt;Devmedia&lt;/span&gt;, aprendi muita coisa com essa explicação, é das melhores que já li.&lt;br /&gt;
Estou buscando informações sobre &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_8&quot;&gt;WPF&lt;/span&gt;, uma nova maneira de desenvolver do Visual &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_9&quot;&gt;Studio&lt;/span&gt;, assim que eu tiver bastante informações posto aqui pra vocês.&lt;br /&gt;
Quem &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_10&quot;&gt;quiser&lt;/span&gt; ir conhecendo é só entrar aqui:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/pt-br/library/cc564903.aspx&quot;&gt;http://msdn.microsoft.com/pt-br/library/cc564903.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Por hoje é só pessoal, um abraço a todos e até mais.</content><link rel='replies' type='application/atom+xml' href='http://programaresimples.blogspot.com/feeds/7601214124311153275/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programaresimples.blogspot.com/2009/05/aplicacao-em-camadas.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/7601214124311153275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4636861792553932297/posts/default/7601214124311153275'/><link rel='alternate' type='text/html' href='http://programaresimples.blogspot.com/2009/05/aplicacao-em-camadas.html' title='C# - Aplicação em Camadas'/><author><name>Marcio Rodrigo</name><uri>http://www.blogger.com/profile/15487842848990563704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVEj7f1mKKhRxaTgNu35dglcUBDwxufMH2Vphck-gpbmDGd6gm6HN1BfdYWqyI6n8bYheLsU98Ru0O9KuAi9qUzuGCBVz-Prp3s3DjE9K_mzzWX5Y-_mQrB6ZxmYF2sg/s220/20190520_161100.jpg'/></author><thr:total>1</thr:total></entry></feed>