Home > Back-end >  The correct missing operator or semicolon
The correct missing operator or semicolon

Time:10-11

Procedure TForm1. Edit1Change (Sender: TObject);
Var
T: Integer;
The begin
T:=StrToInt (Edit1. Text);
Label2. Caption:=IntToStr (t)
Select * from dbgRID1 where GH:=(t)




And the great god, thank you

CodePudding user response:

The last two lines behind missing semicolon;

CodePudding user response:

. in addition to this... Less an end; . Well when I didn't say...

CodePudding user response:

Dizzy, semicolons are minor issues,
This problem is very big, and the select * from dbgRID1 where GH:=(t)

How to direct a SQL statement, and seems to still want to select * from a DBGrid???????

CodePudding user response:

What is the specific for guidance

CodePudding user response:

Make up a program, I want to use the Delphi is to find out all staff personnel information (job number, name, department number, but the name), then also asked can output the print,

Now I just statements, a great god

CodePudding user response:

reference feiba7288 reply: 3/f
, a semicolon is a small problem,
This problem is very big, and the select * from dbgRID1 where GH:=(t)

How to direct a SQL statement, and seems to still want to select * from a DBGrid???????


That how to change it I want to use the Delphi is compiling a program, to find out all staff personnel information (job number, name, department number, but the name), then also asked can output to print,

CodePudding user response:

With query1 do
The begin
SQL. The clear;
SQL. The add (' select * from table1 where gh=' '+ t + "' ");
Active:=true;
end;
  • Related