Edit a Query >>>> NO Function at DelphiXE
Posted: 12.10.2010, 07:39
This Function didn't works at Delphi XE
with Query do
begin
SQL.Clear,
SQL.add ('SELECT * FROM Tablename')
Open;
if RecordCount > 0 then
begin
Edit;
FieldByBName ('Field').asString := 'Hallo'; // ------> here comes an error-message
Post;
end;
with Query do
begin
SQL.Clear,
SQL.add ('SELECT * FROM Tablename')
Open;
if RecordCount > 0 then
begin
Edit;
FieldByBName ('Field').asString := 'Hallo'; // ------> here comes an error-message
Post;
end;