|
var
x: string;
sqlstr, y: integer; // sqlstr: String; sqlstr is a string! You wrote it wrong!
begin
x: = '12313';
y: = 12;
sqlstr: = 'instert into cart values (' '' + y + '' ',' '' + x + '' ')';
// sqlstr: = 'insert into cart values (' + inttostr (y) + ',' '' + x + '' ')';
// Y is an integer to turn around! There is no need to add 'in integers in SQL! So just remove it!
query1.connection: = main.conn;
...
end |
|