Fórum pesquisa #297598
28/09/2005
0
uma variavel se tiver me der um help de como fazer
eu uso um adoquery
Geomicro
Curtir tópico
+ 0Posts
28/09/2005
Rjun
Gostei + 0
28/09/2005
Geomicro
Gostei + 0
28/09/2005
Rjun
Gostei + 0
28/09/2005
Geomicro
Gostei + 0
28/09/2005
Rjun
var Codigo: integer; begin ADOQuery1.SQL.Clear; ADOQuery1.SQL.Add(´SELECT Codigo, Nome FROM Tabela WHERE Codigo = :Codigo´); ADOQuery1.Parameters.ParamByName(´Codigo´) := 10; ADOQuery1.Open; try if not ADOQuery1.IsEmpty then Codigo := ADOQuery1.FieldByName(Codigo).Value; finally ADOQuery1.Close; end; end;
Gostei + 0
28/09/2005
Geomicro
Gostei + 0
28/09/2005
Geomicro
primeiro esse 10 e referente ao quer?
e segundo como faria isto em uma edit
Gostei + 0
28/09/2005
Rjun
ADOQuery1.Parameters.ParamByName(´Codigo´).Value := Edit1.Text;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)