Fórum problemas com Length #273684
22/03/2005
0
Valew
Guilherme
Curtir tópico
+ 0Posts
22/03/2005
Faelcavalcanti
Gostei + 0
22/03/2005
Guilherme
Gostei + 0
22/03/2005
Faelcavalcanti
Coloca o código.
E também, tipow os dois pra gente fazer uma comparação.
Gostei + 0
22/03/2005
Guilherme
if TBClientePESSOA.Value = ´JURIDICA´ then begin if ((Length(DBEdit3.Text) < 14) or (Length(DBEdit3.Text) > 14)) then begin ShowMessage(´Digite Corretamente o CNPJ !´); DBEdit3.SetFocus; Abort; End end; if TBClientePESSOA.Value = ´FISICA´ then begin if ((Length(DBEdit3.Text) < 11) or (Length(DBEdit3.Text) > 11)) then begin ShowMessage(´Digite Corretamente o CPF !´); DBEdit3.SetFocus; Abort; end end; TBCliente.Edit; TBCliente.Post; end;
esse aki nao
if TBDados_finanAVAL_PESSOA.Value = ´JURIDICA´ then begin if ((Length(DBEdit48.Text) < 14) or (Length(DBEdit48.Text) > 14)) then begin ShowMessage(´Digite Corretamente o CNPJ !´); DBEdit48.SetFocus; Abort; End end; if TBDados_finanAVAL_PESSOA.Value = ´FISICA´ then begin if ((Length(DBEdit48.Text) < 11) or (Length(DBEdit48.Text) > 11)) then begin ShowMessage(´Digite Corretamente o CPF !´); DBEdit48.SetFocus; Abort; end end; end;
Gostei + 0
22/03/2005
Marcio.theis
Gostei + 0
22/03/2005
Guilherme
Gostei + 0
22/03/2005
Faelcavalcanti
Que lokura cara nessa tua máquina!
Gostei + 0
22/03/2005
Marcio.theis
Gostei + 0
22/03/2005
Guilherme
messenger gborges_13@hotmail.com me adicona ai galera !!!
Gostei + 0
22/03/2005
Faelcavalcanti
Cara o que o [b:673571b831]taz[/b:673571b831], cujo nick, [b:673571b831]/]/]@t[/b:673571b831] :lol: :lol: ,tá querendo dizer é que você terá que depurar seu código, existem diversas estratégias para depuração, dá uma sacada nestes tópicos sobre [url=http://forum.clubedelphi.net/viewtopic.php?t=54083&highlight=depurar]Como usar o BreakPoint[/url].
Contudo, existem casos como o seu que pode ser uma falha ao valor passado ao componente e/ou coisas do tipo que nos passam desapercebidas e nem sequer notamos. Para ter certeza do que o código está fazendo você deverá inserir vários [b:673571b831]breakpoints[/b:673571b831] no seu código de forma a visualizar em run-time o valor dos parâmetros passados.
:wink:
Falow!
Gostei + 0
23/03/2005
Guilherme
Gostei + 0
23/03/2005
Gandalf.nho
Qual é a máscara que você está usando?
Gostei + 0
23/03/2005
Guilherme
999.999.999-99;0;
Gostei + 0
23/03/2005
Guilherme
Gostei + 0
23/03/2005
Gandalf.nho
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)