Home > Back-end >  Program error, a great god
Program error, a great god

Time:09-20

Adodataset1. Fiter:='Number' + ' ' ' '+ edit1. Text + "' "';
Why said error
Unable to invoke code completion is due to the errors in the source code
Why asking great god parsing T_T

CodePudding user response:

Behind the Numer of quoted in the text, the middle and no operator, what is the meaning of this? Have the usage?

CodePudding user response:

reference 1st floor santiaodahan response:
behind the Numer quoted in the text, nor among operator, what is the meaning of this? Have the usage?

The student id number is my list, the edit is used to display the student id

CodePudding user response:

refer to the second floor qq_37327296 response:
Quote: refer to 1st floor santiaodahan response:
behind the Numer quoted in the text, nor among operator, what is the meaning of this? Have the usage?

The student id number is my list, the edit is used to display the student number

Student id is what type? A string or an integer? No operator behind, such as equals,

CodePudding user response:

This is the condition of filter, your condition is not complete: refer to the following:
[code=deelphi]
Adodataset1. Filtered:=false;
Adodataset1. Filter:='Number>="' + edit1. Text + ' ' 'and Number<+ edit2. Text +=' ' ' ' ' ' '.
Adodataset1. Filtered:=true;

Adodataset1. Filtered:=false;
Adodataset1. Filter:='Number="' + edit1. Text + "'" ';
Adodataset1. Filtered:=true;
[/code]

CodePudding user response:

This is the condition of filter, your condition is not complete: refer to the following:
 
Adodataset1. Filtered:=false;
Adodataset1. Filter:='Number>="' + edit1. Text + ' ' 'and Number<+ edit2. Text +=' ' ' ' ' ' '.
Adodataset1. Filtered:=true;

Adodataset1. Filtered:=false;
Adodataset1. Filter:='Number="' + edit1. Text + "'" ';
Adodataset1. Filtered:=true;

CodePudding user response:

This kind of mistake their track
  • Related