Edit a Query >>>> NO Function at DelphiXE

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
Red-Flash
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 12.10.2010, 07:12

Edit a Query >>>> NO Function at DelphiXE

Post by Red-Flash »

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;
Marius2
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 06.12.2008, 13:07

Post by Marius2 »

Editing a query result is useless.

Instead write an update sql.. update table set field=:value etc..
Red-Flash
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 12.10.2010, 07:12

Post by Red-Flash »

I know the UPDATE function,

BUT ist is very easy to edit a query, as an UPDATE...

and it works everytime with Delphi7.

but DelphiXE ????????
Marius2
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 06.12.2008, 13:07

Post by Marius2 »

Yes its easy, but it wil not work AFAIK.
Red-Flash
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 12.10.2010, 07:12

Post by Red-Flash »

Marius2 wrote:Yes its easy, but it wil not work AFAIK.
Why, didn't ist Work with XE ????
Locked