Search found 9 matches

by RaThek
21.11.2014, 20:15
Forum: ZeosLib 7.2 Betatest Forum
Topic: Cursor jumps in detail DS on master refresh (w/fix)
Replies: 7
Views: 1010

Re: Cursor jumps in detail DS on master refresh (w/fix)

Seems we missunderstood. I'm talking about TZAbstractDataset.ApplyUpdates.
by RaThek
19.11.2014, 07:59
Forum: ZeosLib 7.2 Betatest Forum
Topic: Cursor jumps in detail DS on master refresh (w/fix)
Replies: 7
Views: 1010

Re: Cursor jumps in detail DS on master refresh (w/fix)

Already? In 3438 it wasn't working as expected...
by RaThek
05.11.2014, 13:37
Forum: ZeosLib 7.2 Betatest Forum
Topic: Problems with multi-thread application
Replies: 8
Views: 1499

Re: Problems with multi-thread application

I would do this like this: //Using Format or ParamByName, the error still occur. --- //MyQuery:=Format('UPDATE process SET Stats = 1, Flag = %d WHERE ID = %d', [Flag, ProcessID]); //Query.SQL.Add(MyQuery); Query.SQL.Text := 'UPDATE process SET Stats = 1, Flag = :flag WHERE ID = :id'; Query.ParamByNa...
by RaThek
04.11.2014, 19:36
Forum: ZeosLib 7.2 Betatest Forum
Topic: Cursor jumps in detail DS on master refresh (w/fix)
Replies: 7
Views: 1010

Re: Cursor jumps in detail DS on master refresh (w/fix)

FrOsT is right. I had problem with moving cursor while using ApplyUpdates. After adding UpdateCursorPos in TZAbstractDataset.ApplyUpdates procedure problem is gone. Without this line CurrentRow in TZAbstractRODataset.GetRecord always pointed to the last record. Updated part: UpdateCursorPos; if not ...
by RaThek
04.11.2014, 13:41
Forum: MySQL
Topic: TZQuery.CancelUpdates moves to another record
Replies: 1
Views: 425

Re: TZQuery.CancelUpdates moves to another record

I've solved that using bookmarks but this is far away from well fashioned way:

Code: Select all

Bookmark := frmMain.Zquery.Bookmark;
frmMain.Zquery.DisableControls;
frmMain.Zquery.CancellUpdates;
frmMain.Zquery.GotoBookmark(Bookmark);
frmMain.Zquery.EnableControls;
by RaThek
03.11.2014, 21:27
Forum: MySQL
Topic: TZQuery.CancelUpdates moves to another record
Replies: 1
Views: 425

TZQuery.CancelUpdates moves to another record

Hello, I have DBGrid connected to TZQuery via TDataSource. Query selects records from one table. Simple as walk in the park. Now, when I use CancelUpdates procedure of TZQuery current row changes randomly. It doesn't matter if there are any updates made before or if CachedUpdates are set to True or ...
by RaThek
23.10.2014, 13:22
Forum: Announcements
Topic: Ban and User deletion issues
Replies: 4
Views: 14954

Re: Ban and User deletion issues

Same at me. Is it really modearated every single post?
by RaThek
22.10.2014, 13:24
Forum: ZeosLib 7.1 stable Forum
Topic: Delphi XE2 .asFloat implemented?
Replies: 2
Views: 706

Re: Delphi XE2 .asFloat implemented?

I'm using AsFloat in XE2 and it works correct both ways - get and set.
by RaThek
22.10.2014, 13:22
Forum: ZeosLib 7.1 stable Forum
Topic: Using RecNo in OnCalcFields
Replies: 1
Views: 466

Using RecNo in OnCalcFields

Hi everyone, I have code like this in OnCalcFields event: DataSet.FieldByName('sspec_lp').AsInteger := DataSet.RecNo; But when I use this part of code there are strange results (index column) in DBGrid (and in the dataset I suppose) https://imageshack.com/i/kpt2DmGUj Without using this part of code ...

Go to advanced search