![]() |
Datenbank: MYSQL • Zugriff über: ODBC
MySql Query = empty?
Hi,
ich möchte eine While Schleife bauen, allerdings hab ich bislang nur eine endlos Schleife, Grund dafür ist, das ich nciht weiß wie ich abtesten kann ob das nächste Query leer ist? Ich benutzte Zeos. Query.Next zeigt mir das nächste Query an, bloß wie ist der Befehl für empty? While Query <> nil do endete in einer endlos Schleife. |
Re: MySql Query = empty?
Hallo,
ganz einfach
Delphi-Quellcode:
:hi:
if ZQuery.IsEmpty then // ist True bei leerer Datenmenge
|
Re: MySql Query = empty?
In diesem Fall wohl eher
Delphi-Quellcode:
While not Query.Eof do ...
|
Re: MySql Query = empty?
Oh da hast du recht ist wirklich ganz einfach
|
Re: MySql Query = empty?
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:40 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz