Accessing a field of a closed dataset

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 55
Joined: Wed 04 Apr 2007 17:25

Accessing a field of a closed dataset

Post by tonisanta » Fri 09 Oct 2009 09:28

when access a field of a closed dataset, an exception like 'Field [xx] not found' is raized. For us 'programmers' it would help to identify the problem if a 'Cannot perform this operation on a closed dataset' (defined in DBConsts.pas with SDataSetClosed) would be raized.
best regards

Devart Team
Posts: 2888
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 09 Oct 2009 12:00

Field [xx] not found' is correct exception, because you can get access to field on closed dataset, if this field was created manually, for example in IDE Field Editor.

Post Reply