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
Red-Flash
Fresh Boarder
Posts: 3 Joined: 12.10.2010, 07:12
Post
by Red-Flash » 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;
Marius2
Fresh Boarder
Posts: 18 Joined: 06.12.2008, 13:07
Post
by Marius2 » 12.10.2010, 10:34
Editing a query result is useless.
Instead write an update sql.. update table set field=:value etc..
Red-Flash
Fresh Boarder
Posts: 3 Joined: 12.10.2010, 07:12
Post
by Red-Flash » 12.10.2010, 10:47
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
Posts: 18 Joined: 06.12.2008, 13:07
Post
by Marius2 » 12.10.2010, 10:51
Yes its easy, but it wil not work AFAIK.
Red-Flash
Fresh Boarder
Posts: 3 Joined: 12.10.2010, 07:12
Post
by Red-Flash » 12.10.2010, 11:25
Marius2 wrote: Yes its easy, but it wil not work AFAIK.
Why, didn't ist Work with XE ????