procedure TAlquiler.MaskEdit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key=#13 then begin
with qryCliente do begin
if active then Close; sql.Clear; SQL.Add(' SELECT telefono1_cliente, nombre_cliente, apellidos_cliente FROM tbClientes ');
SQL.Add('WHERE telefono1_cliente = '+quotedstr(MaskEdit1.Text) );
Open;
if not IsEmpty then begin
DBText1.Caption:=fieldByName('nombre_cliente').AsString+' '+fieldByName('apellidos_cliente').AsString;
Edit2.SetFocus end else begin
ShowMessage('Cliente no existe');
end; end; end;