Fórum Usar um edit para trazer uma forma de pgto de um DBlookupComboBox #385241
31/08/2010
0
begin
edit4.text:= strzero(edit4.text,2);
selecionaiq(qraux,'select CPDESC from CP where CPCODI = ''' + edit4.text + ''' ');
DBEdit1.Text := qraux.fieldbyname('CPDESC').asstring ;
DBEdit1.Enabled := false;
end;
Patric T.ferreira
Curtir tópico
+ 0Posts
31/08/2010
Leonardo Xavier
Gostei + 0
31/08/2010
Patric T.ferreira
Gostei + 0
31/08/2010
Pietro Braga
tente assim:
edit4.text:= strZero(edt4.text,2);
selecionaiq(qraux,'select CPDESC from CP where CPCODI = ''' + edit4.text + ''' ');
DBEdit1.Text := str(qraux.fieldbyname('CPDESC').Value) ;
DBedit1.ReadOnly:= True;
Abraço
Gostei + 0
31/08/2010
Pietro Braga
Gostei + 0
31/08/2010
Pietro Braga
Gostei + 0
31/08/2010
Leonardo Xavier
No evento OnChange do Edit vc vai colocar:
if edit1.text<>'' then begin DBLookupComboBox(numero do seu dbloock).KeyValue:=Edit1.Text; end;
Testei aqui e funcionou. Testa ai e posta se funcionou.
Gostei + 0
31/08/2010
Patric T.ferreira
begin
Combo1.KeyValue:=Edit4.Text;
end;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)