Home > Back-end >  While not eof do how to skip the execution of a record
While not eof do how to skip the execution of a record

Time:10-12

Adoq1. First;
While not adoq1. Eof do
The begin
If the Boolean variable=true then
How to skip the execution of a record?
end;

Thank you

CodePudding user response:

While not adoq1. Eof do
The begin
If the Boolean variable=true then
The Continue;

CodePudding user response:

Continue

CodePudding user response:

Adoq1. First;
While not adoq1. Eof do
The begin
If the Boolean variable=true then
The begin
adoq1. Next;//must add this sentence, otherwise you will die cycle
The Continue;
end;
end;

CodePudding user response:

The Continue; 3 l is

CodePudding user response:

Reference 3 floor feiba7288 reply:
 adoq1. First; 
While not adoq1. Eof do
The begin
If the Boolean variable=true then
The begin
Adoq1. Next;//must add this sentence, otherwise you will die cycle
The Continue;
end;
Adoq1. Next;//this is also to want to add or if is not the first true also die cycle
end;

CodePudding user response:

reference 5 floor gykthh reply:
reference 3 floor feiba7288 reply:
Delphi/Pascal code? 12345678910 adoq1. First; While not adoq1. Eof dobegin if the Boolean variable=true then begin adoq1. Next;//must add this way, or you will die circulation Continue; end; Adoq1. Next;//this is...


Yes, of course,

CodePudding user response:

reference 5 floor gykthh reply:
reference 3 floor feiba7288 reply:
Delphi/Pascal code? 12345678910 adoq1. First; While not adoq1. Eof dobegin if the Boolean variable=true then begin adoq1. Next;//must add this way, or you will die circulation Continue; end; Adoq1. Next;//this is...



CodePudding user response:

reference 5 floor gykthh reply:
reference 3 floor feiba7288 reply:
Delphi/Pascal code? 12345678910 adoq1. First; While not adoq1. Eof dobegin if the Boolean variable=true then begin adoq1. Next;//must add this way, or you will die circulation Continue; end; Adoq1. Next;//this is...

Summary has been able to solve the problem, I in the quote,

CodePudding user response:

Next
Continue

CodePudding user response:

Adoq1. Next;//must add this sentence, otherwise you will die cycle
The Continue;

CodePudding user response:

Learning how to learn

CodePudding user response:

refer to 6th floor feiba7288 response:
Quote: refer to the fifth floor gykthh reply:

Reference 3 floor feiba7288 reply:
Delphi/Pascal code? 12345678910 adoq1. First; While not adoq1. Eof dobegin if the Boolean variable=true then begin adoq1. Next;//must add this way, or you will die circulation Continue; end; Adoq1. Next;//this is...


Yes, of course,


Learned today, and the original function, thanks for your sharing,

Another program with the actual situation of the building Lord, however, we can realize the function of the original poster can through the following methods:

 
Adoq1. First;
While not adoq1. Eof do
The begin
If the Boolean variable=false then
The begin
//need to execute code

end;
Adoq1. Next;
end;


Just put forward to discuss,

CodePudding user response:

refer to 12 floor yunsuifeng2009 reply:
Quote: refer to the sixth floor feiba7288 response:

Quote: refer to the fifth floor gykthh reply:

Reference 3 floor feiba7288 reply:
Delphi/Pascal code? 12345678910 adoq1. First; While not adoq1. Eof dobegin if the Boolean variable=true then begin adoq1. Next;//must add this way, or you will die circulation Continue; end; Adoq1. Next;//this is...


Yes, of course,


Learned today, and the original function, thanks for your sharing,

Another program with the actual situation of the building Lord, however, we can realize the function of the original poster can through the following methods:

 
Adoq1. First;
While not adoq1. Eof do
The begin
If the Boolean variable=false then
The begin
//need to execute code

end;
Adoq1. Next;
end;


Just put forward to discuss,

The

CodePudding user response:

reference 13 floor babydog01 reply:
Quote: refer to 12 floor yunsuifeng2009 reply:

Quote: refer to the sixth floor feiba7288 response:

Quote: refer to the fifth floor gykthh reply:

Reference 3 floor feiba7288 reply:
Delphi/Pascal code? 12345678910 adoq1. First; While not adoq1. Eof dobegin if the Boolean variable=true then begin adoq1. Next;//must add this way, or you will die circulation Continue; end; Adoq1. Next;//this is...


Yes, of course,


Learned today, and the original function, thanks for your sharing,

Another program with the actual situation of the building Lord, however, we can realize the function of the original poster can through the following methods:

 
Adoq1. First;
While not adoq1. Eof do
The begin
If the Boolean variable=false then
The begin
//need to execute code

end;
Adoq1. Next;
end;


Just put forward to discuss,

nullnullnullnullnullnullnullnullnullnullnull
  • Related