Thread View: comp.lang.pascal.delphi.databases
1 messages
1 total messages
Started by Jens Fudickar
Wed, 07 Jan 1998 00:00
Problems using DATASET.LOCATE
Author: Jens Fudickar
Date: Wed, 07 Jan 1998 00:00
Date: Wed, 07 Jan 1998 00:00
35 lines
1554 bytes
1554 bytes
Hi,
i have a Problem using the locate function
PROCEDURE TRecursiveDetailTable.HandleAfterPost (Dataset : TDataset);
VAR KeyFields : Variant;
BEGIN
IF RefreshRequired THEN
Refresh_Pos(MasterSource.Dataset);
IF NewRecord THEN
BEGIN
KeyFields := FieldValues [IndexFieldNames];
WITH MasterSource DO
try
DisableControls;
Close;
open;
Locate (MasterFields, KeyFields, []);
finally
EnableControls;
END;
END;
RefreshRequired := False;
IF Assigned (AfterPost) THEN
AfterPost (Dataset);
END; {*** PROCEDURE TRecursiveDetailTable.HandleBeforeInsert; ***}
With this part of Source i allways get an eVariantError-Exception at the
locate function.
Can anyone tell me something about an error.
Thanks
Jens
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads