procedure TForm1.BoxCodigoChange(Sender: TObject);
Var
Articulo:String;
begin
with ZQuery1 do
begin
Close;
with SQL do
begin
Clear;
Add('Select Articulo From Inventario Where Articulo Like '+QuotedStr('%'+BoxCodigo.Text+'%')+' Order by Articulo');
Open;
BoxCodigo.Items.Clear;
First; While Not(ZQuery1.Eof) do begin
Articulo:= ZQuery1.Fields[0].AsString;
BoxCodigo.Items.Add(Articulo);
Next; BoxCodigo.SelStart := Length(BoxCodigo.Text); BoxCodigo.DroppedDown:=True;
ShowCursor(True);
end;
end;
end;
end;