Autor Beitrag
patrick dee Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 311

Win 98SE, WinXP
D3,D6
BeitragVerfasst: Mo 30.09.02 17:56 
ops :oops:
fast vergessen für alle die so was mal brauchen. also bei mir geht es optimal ;

procedure TAbfrage_Form.BtnSearch1Click(Sender: TObject);
begin
Query1.SQL.Clear;
Query1.SQL.Add('Select * from lied where Titel Like ' + #39#37 + edit2.text + #37#39);
Query1.open;
Progressbar.Max:= Query1.RecordCount;
Progressbar.Position:= 0;
while not Query1.EOF do
begin
Progressbar.Position:= Progressbar.Position + 1;
Progressbar.Update;
Query1.next;
end;
end;

Wer sucht der findet im Netz. Also wie gesagt habe es probiert und geht.

patrick

_________________
Glauben heißt nichts wissen ...
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 30.09.02 17:58 
Hi!

Wie hast Du das gemacht? Könnte ich evtl. auch mal gebrauchen.

MfG,
Peter

<edit>
Habe zu spät gepostet
</edit>

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 30.09.02 18:02 
Moooooment mal!

Die Sache ist doch nach Query.Open schon erledigt. Danach einen ProgressBar zu machen ist doch sinnlos, oder?

MfG,
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Di 01.10.02 06:25 
Stimmt. Es ging ja darum einen Progressbar für die Dauer der Abfrage zu machen. Ausserdem liefert RecordCount bei Interbase über IBX falsche Werte.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...