<?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-6428990082521825358</id><updated>2024-09-07T13:35:59.440-07:00</updated><title type='text'>Dicas Delphi</title><subtitle type='html'>delphi</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-7319692458082825578</id><published>2011-06-09T09:58:00.000-07:00</published><updated>2011-06-09T09:58:32.541-07:00</updated><title type='text'>Recuperando arquivos apagados com o EasyRecovery</title><content type='html'>&lt;div align=&quot;left&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;Quando você não fez o backup de seus arquivos e um vírus apaga todos seus arquivos (ou um problema do Windows que &quot;só&quot; resolve formatando e você perde todos seus arquivos), isso é motivo de muito desespero, certo ? Bem, existe uma solução para recuperar os seus arquivos apagados: o EasyRecovery da Ontrack !&lt;br /&gt;
&lt;br /&gt;
Ao formatar um HD ou apagar um arquivo, a sua referência é apenas &quot;apagada&quot; das tabelas de alocação FAT - e na prática o arquivo não é fisicamente eliminado do HD, o que possibilita a recuperação dos arquivos. Para efetivamente apagar o arquivo do HD, você deve utilizar um programa específico para isso (como o ZeroFill da Maxtor).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: maroon;&quot;&gt;Formatei meu HD ou perdi todos meus dados por causa de um vírus. O que devo fazer ?&lt;/span&gt;&lt;br /&gt;
A primeira coisa a ser feita é não mexer no HD: nada de reformatá-lo, instalar o Windows etc. Tenha em mãos um outro HD com tudo instalado normalmente (Com pelo menos o Windows instalado) e deixe-o como MASTER, colocando o HD que você quer recuperar como SLAVE. Coloque os HD&#39;s no computador, vá no Setup e peça para que ele reconheça o novo HD: depois pegue o programa chamado &quot;Easy Recovery Professional&quot; encontrado&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.ontrack.com/&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;AQUI&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;. Neste tutorial eu estarei utilizando a versão 5.0 embora a versão mais recente seja a 6.0 (que tem mais opções de recuperação, como recuperação de arquivos do Word, Excel, Access, entre outros).&lt;br /&gt;
&lt;br /&gt;
Vamos ao processo de recuperação: instale no HD com o Windows instalado, o programa &quot;Easy Recovery Professional&quot; e depois da instalação, abra o programa. Após a tela de instalação, clique em &quot;Next&quot; e o programa irá para esta tela :&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;386&quot; src=&quot;http://www.baboo.com.br/absolutenm/articlefiles/3350-er1.gif&quot; width=&quot;490&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;br /&gt;
Escolha o HD que você queira recuperar: depois de selecioná-lo clique em &quot;Next&quot; novamente. Abrirá um tela onde aparece as descrições do HD selecionado para o Scan e clique em &quot;Advanced Options&quot; para ter opções avançadas. Se clicar em &quot;Advanced Options&quot; abrirá esta tela:&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;389&quot; src=&quot;http://www.baboo.com.br/absolutenm/articlefiles/3350-er2.gif&quot; width=&quot;490&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;br /&gt;
Deixe em &quot;Use Best Match&quot; que é a melhor opção para recuperar boa parte dos seus arquivos, mas você pode recuperar arquivos de acordo com sua necessidade. Clique em &quot;Next&quot; novamente e o programa irá para esta tela:&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;386&quot; src=&quot;http://www.baboo.com.br/absolutenm/articlefiles/3350-er3.gif&quot; width=&quot;490&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;br /&gt;
Este é o processo de busca de arquivos apagados: o tamanho e velocidade do HD vão determinar o tempo para a busca de todos os arquivos (para ter uma idéia, este teste foi realizado com um HD de 8.6Gb e demorou cerca de uma hora com um processador de 500mhz e 160 Mb de memória RAM).&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;Quando acabar, clique em &quot;Next&quot; para ver os arquivos que podem ser salvos. Ao final do scan de arquivos, irá para esta tela:&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;387&quot; src=&quot;http://www.baboo.com.br/absolutenm/articlefiles/3350-er4.gif&quot; width=&quot;490&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div align=&quot;left&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;br /&gt;
Note que do lado esquerdo da tela, são os diretórios e do lado direito os arquivos de cada diretório: clique nos &quot;+&quot; para ver os diretórios e quando quiser salvar tal diretório ou arquivo basta clicar nas caixinhas. Você poderá salvar vários arquivo de uma só vez.&lt;br /&gt;
&lt;br /&gt;
Em &quot;Destination&quot; coloque onde quer salvar os arquivos. Você não pode salvar no HD onde foi feita a busca e por este motivo há a necessidade de outro HD. Coloque o caminho do HD onde o programa instalado (O que deve ser C:\, e você pode salvar em C:\Meus Documentos por exemplo, e onde o HD que foi scaneado deve ser o D:\) e clique em &quot;Next&quot; para o processo de recuperação começar. Os aquivos serão salvos (e isso poderá demorar bastante). Lembre-se de que o HD onde será salvo deverá caber os arquivos que você quer recuperar.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;Se seus arquivos foram apagados por causa de alguns vírus, é altamente recomendável você ter um ótimo antivirus instalado no seu computador e não se esqueça de atualizá-lo sempre !&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma; font-size: 12px;&quot;&gt;&lt;span style=&quot;font-family: Tahoma; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/7319692458082825578/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/recuperando-arquivos-apagados-com-o.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/7319692458082825578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/7319692458082825578'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/recuperando-arquivos-apagados-com-o.html' title='Recuperando arquivos apagados com o EasyRecovery'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-7449583772816630003</id><published>2011-06-09T05:23:00.001-07:00</published><updated>2011-06-09T05:23:28.987-07:00</updated><title type='text'>Delphi Calcular</title><content type='html'>procedure Calcular;&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;edit_Total.Text := StrToFloat(Edit_Total.Text + Edit_Salario.Text + Edt_Custo.Text + Edit_Adcional) ;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; if Edit_Total.Text &amp;lt;&amp;gt; 0 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Edit_Total.Text := FormatFloat(&#39;0.00&#39;,SrtToFloat(Edit_Total.Texte)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Edit_Total.Text := FormatFloat(&#39;0.00&#39;,0);&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------&lt;br /&gt;
var a,b,c, total: Real;&lt;br /&gt;
begin&lt;br /&gt;
a:= DBEdit6.Field.AsFloat;&lt;br /&gt;
b:= DBEdit7.Field.AsFloat;&lt;br /&gt;
c:= DBEdit8.Field.AsFloat;&lt;br /&gt;
total:= (a * b * c);&lt;br /&gt;
DBEdit9.Field.AsFloat:= total;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------&lt;br /&gt;
na saida de um campo (on exit) do dbedit&lt;br /&gt;
Tenho três DBEdit (DBEditQuantidade, DBEditValor_Compra e DBEditTotal_Compra) preciso que o DBEDitTotalCompra mostre o calculo:&lt;br /&gt;
&lt;br /&gt;
DBEDitQuantidade * DBEDitValor_Compra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
O DBEDitQuantidade está definido com INTEGER e o DBEDitValot_Compra, DBEDitTotal_Compra defido como $.&lt;br /&gt;
Table1.FieldByName(&#39;CampoqueRecebeTotal&#39;)Value:=Table1.FieldByName(&#39;CampoSoma1&#39;)Value * Table1.FieldByName(&#39;CampoSoma2&#39;).Value;&lt;br /&gt;
&lt;br /&gt;
-------------------&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/7449583772816630003/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/delphi-calcular.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/7449583772816630003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/7449583772816630003'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/delphi-calcular.html' title='Delphi Calcular'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-1731390483373292880</id><published>2011-06-09T05:22:00.001-07:00</published><updated>2011-06-09T05:22:35.162-07:00</updated><title type='text'>Campo Calculated</title><content type='html'>Delphi - Trabalhando com Campos &lt;br /&gt;
&lt;br /&gt;
Objeto TField - Fiels Editor e Campos Calculados&lt;br /&gt;
&lt;br /&gt;
Quando você ativa um componente Table através da propriedade Active := True, componentes TField são criados para cada campo da tabela. Mas você não pode se referir a eles em seu código, ou mesmo mudar determinadas propriedades. Para isso, é preciso criá-los durante o projeto de seu aplicativo. Isto é feito através do Fields Editor.&lt;br /&gt;
&lt;br /&gt;
Este editor permite que você defina quais os campos de determinada tabela aparecerão no Object Inspector, e poderão ser referenciados no código.&lt;br /&gt;
&lt;br /&gt;
Para acessar o Fields Editor:&lt;br /&gt;
• Um duplo clique no componente Table ou Query inserido no formulário. Aparece o Fields Editor.&lt;br /&gt;
• Clique com o botão direito do mouse sobre o Fields Editor, e, no menu que aparece selecione Add Fields para abrir uma caixa de dialogo listando os campos da tabela associada ao componente Table.&lt;br /&gt;
• Selecione os campos que você quer mostrar, e clique OK, os campos passam para o interior do Fields Editor;&lt;br /&gt;
• Caso queira mude a ordem de disposição dos campos, arrastando os mesmos;&lt;br /&gt;
&lt;br /&gt;
A propriedade Name do componente TField é estabelecida automaticamente pelo Delphi, atravéz da associação do nome do componente Table com o nome do campo na tabela.&lt;br /&gt;
&lt;br /&gt;
Mudando Propriedades de componentes TFiels&lt;br /&gt;
&lt;br /&gt;
Após ter criado componentes TFields durante o projeto, através do Fields Editor podemos mudar suas propriedades através do Object Inspector.&lt;br /&gt;
&lt;br /&gt;
Lendo valores de Campos&lt;br /&gt;
&lt;br /&gt;
Criar componentes TFields durante o projeto permite que você possa manipular os mesmos através do seu código. Ou seja, você poderá se referir a eles no código de sua aplicação.&lt;br /&gt;
&lt;br /&gt;
Você lê valores de um campo através da propriedade Value do componente TField.&lt;br /&gt;
&lt;br /&gt;
Por exemplo: Para ler na caixa de edição o valor de um campo Nome do tipo texto faríamos:&lt;br /&gt;
&lt;br /&gt;
Edit1.Text := Table1Nome.Value;&lt;br /&gt;
&lt;br /&gt;
Cada campo escolhido no Fields Editor representa um componente TField diferente.&lt;br /&gt;
Veja alguns exemplos:&lt;br /&gt;
&lt;br /&gt;
Tipo Campo&lt;br /&gt;
Objeto TField&lt;br /&gt;
Conversão&lt;br /&gt;
Campo Texto&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TStringField&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AsString&lt;br /&gt;
Campo Data&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TDateField&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AsDateTime&lt;br /&gt;
Campo Lógico - Boolean&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TBlobField&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AsBoolean&lt;br /&gt;
Campo Inteiro&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TIntegerField&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AsInteger&lt;br /&gt;
Campo Float&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TFloatField&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AsFloat&lt;br /&gt;
Campo Moeda&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;TCurrencyField&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AsCurrency&lt;br /&gt;
Se você quiser colocar o valor de um campo inteiro em um componente TEdit, usamos a propriedade de conversão AsInteger.&lt;br /&gt;
&lt;br /&gt;
Edit1.Text := Table1Idade.AsInteger;&lt;br /&gt;
ou campo data assim&lt;br /&gt;
Edit2.Text := Table1DataNascimento.AsDateTime ;&lt;br /&gt;
&lt;br /&gt;
Então:&lt;br /&gt;
&lt;br /&gt;
Do campos para a variável usar&lt;br /&gt;
&lt;br /&gt;
MDescricao := Tbl_ProdutosDescricao.AsString ;&lt;br /&gt;
&lt;br /&gt;
Da variável para o campo usar&lt;br /&gt;
&lt;br /&gt;
Tbl_produtosDescricao.AsString := MDescricao ;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Outro método usado para fazer referencia a campos de suas tabelas é a propriedade FieldByName.&lt;br /&gt;
Sintaxe:&lt;br /&gt;
MCliente := Table1.FieldByName( &#39;Nome&#39; ).AsString&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Adicionando Registros ( Incluindo )&lt;br /&gt;
&lt;br /&gt;
Table1.Append; // Com o Fields Editor&lt;br /&gt;
Table1Nome.AsString := &#39;João da Silva&#39; ;&lt;br /&gt;
Table1Pago.AsBoolean := False;&lt;br /&gt;
Table1.Post;&lt;br /&gt;
&lt;br /&gt;
Table1.Append; // Com FieldByName&lt;br /&gt;
Table1.FieldByName( &#39;Nome&#39; ).AsString := &#39;João da Silva&#39; ;&lt;br /&gt;
Table1.FieldByName( &#39;Pago&#39; ).AsBoolean := False;&lt;br /&gt;
Table1.Post;&lt;br /&gt;
&lt;br /&gt;
Editando Registros&lt;br /&gt;
&lt;br /&gt;
Table1.Edit; // Com o Fields Editor&lt;br /&gt;
Table1Pago.AsBoolean := True;&lt;br /&gt;
Table1.Post;&lt;br /&gt;
&lt;br /&gt;
Table1.Edit;// Com FieldByName&lt;br /&gt;
Table1.FieldByName( &#39;Pago&#39; ).AsBoolean := True;&lt;br /&gt;
Table1.Post;&lt;br /&gt;
&lt;br /&gt;
Excluindo ( Apagando )&lt;br /&gt;
&lt;br /&gt;
Table1.Delete;&lt;br /&gt;
&lt;br /&gt;
Definindo um campo calculado - Um campo calculado é aquele que é resultado da intereção entre dois ou mais campos de uma tabela.&lt;br /&gt;
&lt;br /&gt;
Para criar um campo calculado:&lt;br /&gt;
&lt;br /&gt;
Entre no Fields Editor e clique com o botão direito sobre ele, e, no menu que aparece escolha New Field&lt;br /&gt;
No quadro Name, entre com o nome do campo calculado;&lt;br /&gt;
No quadro Component, o Delphi automaticamente coloca o nome do componente TField criado;&lt;br /&gt;
No quadro Type, escolha o tipo de campo calculado (DateTime, Float, Currency, etc);&lt;br /&gt;
No quadro Size entre com o tamanho do campo ;&lt;br /&gt;
Em Field Type, marque a caixa Calculated para informar que esse é um campo calculado que está sendo criado;&lt;br /&gt;
Clique OK quando terminar. O novo campo é inserido no Object Inspector. Agora você poderá se referir a ele no código.&lt;br /&gt;
Associando Código ao campo calculado&lt;br /&gt;
&lt;br /&gt;
Para criar um código associado ao campo calculado:&lt;br /&gt;
&lt;br /&gt;
Selecione o componente Table associado;&lt;br /&gt;
No Object Inspector, vá para a página Events dê um duplo clique sobre o evento OnCalcFields entrando no Editor de Código;&lt;br /&gt;
Escreva as linhas de código necessárias, dentro da procedure relacionada ao evento acima.&lt;br /&gt;
Dicas:&lt;br /&gt;
A propriedade Active da tabela tem de estar em False.&lt;br /&gt;
No evento OnCalcFields, você só pode atribuir valores a campos calculados.&lt;br /&gt;
&lt;br /&gt;
------------ / / ------------------&lt;br /&gt;
&lt;br /&gt;
Vamos praticar:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
No projeto da aula Trabalhando com índices (alterado na aula Localizando Registros) vamos incluir:&lt;br /&gt;
um campo calculado com nome = juros, Type = Currency e ...&lt;br /&gt;
um objeto DBEdit (Paleta Data Controls) com as seguintes propriedades DataSource = Ds_Clientes, Enable = False e DataField = Juros.&lt;br /&gt;
&lt;br /&gt;
No evento OnCalcFields do objeto Table coloque a seguinte procedure:&lt;br /&gt;
&lt;br /&gt;
procedure TForm1.tbl_clientesCalcFields(DataSet: TDataSet);&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; tbl_clientesJuros.AsCurrency := tbl_clientesvalor_debito.Value * 1.10 ;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
Pronto agora ja temos um campo calculado com 10 % de juros sobre o saldo devedor.</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/1731390483373292880/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/campo-calculated.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/1731390483373292880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/1731390483373292880'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/campo-calculated.html' title='Campo Calculated'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-7770037077247396722</id><published>2011-06-06T12:37:00.000-07:00</published><updated>2011-06-06T12:37:13.369-07:00</updated><title type='text'>Internet no Celular</title><content type='html'>quer usar internet no celular ? segue aí as configurações&lt;br /&gt;
&lt;br /&gt;
TIM&lt;br /&gt;
&lt;br /&gt;
crie um perfil TIM WAP FAST&lt;br /&gt;
coloque como pagina principal http://wap.tim.com.br&lt;br /&gt;
vá para conta de dados selecione tim wap fast e configure :&lt;br /&gt;
gprs: tim wap fast&lt;br /&gt;
npa wap.tim.br&lt;br /&gt;
utilizador tim&lt;br /&gt;
senha tim&lt;br /&gt;
tipo de ligação: http&lt;br /&gt;
ip 200.244.116.065&lt;br /&gt;
porta : 8080&lt;br /&gt;
utilizador tim&lt;br /&gt;
senha tim</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/7770037077247396722/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/internet-no-celular.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/7770037077247396722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/7770037077247396722'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/internet-no-celular.html' title='Internet no Celular'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-1924355066381946560</id><published>2011-06-05T11:40:00.000-07:00</published><updated>2011-06-05T11:40:20.096-07:00</updated><title type='text'>DBEdit</title><content type='html'>Fazer soma utilizando dbedit&lt;br /&gt;
coloque 3 dbedit no form&lt;br /&gt;
no evento On exit do dbedit 2 coloque :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
procedure TFormControle.DBEdit2Exit(Sender: TObject);&lt;br /&gt;
begin&lt;br /&gt;
TbControle.FieldByName(&#39;Saldo&#39;).Value:=TbControle.FieldByName(&#39;Valor1&#39;).Value - TbControle.FieldByName(&#39;Valor2&#39;).Value;&lt;br /&gt;
&lt;br /&gt;
ou seja: &amp;nbsp;Saldo é igual valor 1 - valor 2</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/1924355066381946560/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/dbedit.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/1924355066381946560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/1924355066381946560'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/dbedit.html' title='DBEdit'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-5091707455350718889</id><published>2011-06-03T17:33:00.000-07:00</published><updated>2011-06-03T17:33:21.184-07:00</updated><title type='text'>Currency</title><content type='html'>Deixar o DBedit em estilo moeda:&lt;br /&gt;
&lt;br /&gt;
DBEDIT1.TEXT:= FORMATFLOAT(&#39;R$ ###,##0.00&#39;, STRTOFLOAT(DBEDIT1.TEXT));</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/5091707455350718889/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/currency.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/5091707455350718889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/5091707455350718889'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/currency.html' title='Currency'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-8297759113998031552</id><published>2011-06-03T12:59:00.000-07:00</published><updated>2011-06-03T12:59:16.033-07:00</updated><title type='text'>Trocar o enter por tab no delphi</title><content type='html'>&lt;h2 style=&quot;border-bottom-color: rgb(74, 74, 74); border-bottom-style: dashed; border-bottom-width: 1px; color: #5f5f5f; font-family: &#39;Trebuchet MS&#39;, helvetica, arial, verdana; font-size: 14px; font-weight: bold;&quot;&gt;Trocar o tab pelo enter em um form.&lt;/h2&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999; font-family: &#39;Trebuchet MS&#39;, helvetica, arial, verdana; font-size: 14px; font-weight: bold;&quot;&gt;&lt;pre width=&quot;76&quot;&gt;No evento OnKeyPress &lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;do&lt;/b&gt;&lt;/span&gt; formulário.

Digite.
&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt; key=#13 &lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;then&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;begin&lt;/b&gt;&lt;/span&gt;
        key := #0; 

        Perform(WM_NEXTDLGCTL,0,0);

&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;end&lt;/b&gt;&lt;/span&gt;;&lt;/pre&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/8297759113998031552/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/trocar-o-enter-por-tab-no-delphi.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/8297759113998031552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/8297759113998031552'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/trocar-o-enter-por-tab-no-delphi.html' title='Trocar o enter por tab no delphi'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-1928088004815279046</id><published>2011-06-03T12:30:00.000-07:00</published><updated>2011-06-03T12:30:49.069-07:00</updated><title type='text'>Botão de Pesquisa delphi</title><content type='html'>fazer uma pesquisa na tela de pesquisa e mandar o resultado para os edits faça o seguinte :&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Criei um exemplo básico. Criei uma aplicação normal com 2 formulários. O primeiro deles é o frmPrincipal, e apenas ele é iniciado com o sistema. Nele coloquei um campo TEdit com o nome de edtCampo, e coloquei um TButton que chama btnPesquisar.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;O outro formulário se chama frmPesquisa. Como se trata apenas de um exemplo de manipulação de informação atraves dos formularios, não coloquei um grid, e sim um TListBox já com informações adicionadas, apenas para teste. Criei também nesse formulário um botão OK.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;No btnPesquisar do frmPrincipal coloque o seguinte código:&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(201, 201, 201); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(201, 201, 201); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(201, 201, 201); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(201, 201, 201); border-top-style: solid; border-top-width: 1px; font-size: 11px; line-height: 15px; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TfrmPrincipal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;btnPesquisarClick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Application&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;CreateForm&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TfrmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; frmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; frmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;ShowModal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; edtCampo&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; frmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;lbItens&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Items&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Strings&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;frmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;lbItens&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;ItemIndex&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;];&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FreeAndNil&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;frmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;No btnOK do frmPesquisar coloque o conteudo&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(201, 201, 201); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(201, 201, 201); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(201, 201, 201); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(201, 201, 201); border-top-style: solid; border-top-width: 1px; font-size: 11px; line-height: 15px; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TfrmPesquisa&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;btnOKClick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/1928088004815279046/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/botao-de-pesquisa-delphi.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/1928088004815279046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/1928088004815279046'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/botao-de-pesquisa-delphi.html' title='Botão de Pesquisa delphi'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6428990082521825358.post-3278437873636235870</id><published>2011-06-03T12:20:00.000-07:00</published><updated>2011-06-03T13:22:38.695-07:00</updated><title type='text'>Delphi Edit Soma Multiplica</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;para somar ou multiplicar duas edit e aparecer o resultado na terceira edit, sem ter que colocar um botão faça o seguinte :&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;Na Propriedade KeyPrewiew coloque True&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555753; font-family: arial, verdana, tahoma, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(201, 201, 201); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(201, 201, 201); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(201, 201, 201); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(201, 201, 201); border-top-style: solid; border-top-width: 1px; font-size: 11px; line-height: 15px; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Private&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; declarations &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Double&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; declarations &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Form1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TForm1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; total&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; real&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Fcampo1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; real&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; real&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
implementation
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$R &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;*.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;dfm&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TForm1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FormKeyPress&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Key&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Char&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; key &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;#13 then&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
key &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;#0;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Perform&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;WM_NextDlgCtl&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TForm1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit1Exit&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;StrToFloat&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TForm1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit2Exit&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo2&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;StrToFloat&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TForm1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit1KeyPress&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Key&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Char&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; key &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;#13 then&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;StrToFloat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;SetFocus&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

procedure &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TForm1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit2KeyPress&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Sender&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;TObject&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Key&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Char&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; key &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;#13 then&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;StrToFloat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
total&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FCampo2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Edit3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Text&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:=&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FloatToStr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Total&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dicassobredelphi.blogspot.com/feeds/3278437873636235870/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/edit-soma-multiplica.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/3278437873636235870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6428990082521825358/posts/default/3278437873636235870'/><link rel='alternate' type='text/html' href='http://dicassobredelphi.blogspot.com/2011/06/edit-soma-multiplica.html' title='Delphi Edit Soma Multiplica'/><author><name>LIZANDRO</name><uri>http://www.blogger.com/profile/12599580910149379295</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>