Reported By: Lynn Hart Reported On: 10/26/1999 For: Version 1.18 Build 1
# 492Delete Method of RestructureFieldDefs Deleting Two Items Instead of One I just downloaded 1.18. I'm getting an exception when I try to delete the LAST field in a database. The following code throws a List Out of Bounds error.
with tbl.RestructureFieldDefs do begin
i := Count - 1;
Delete(i);
end;
CommentsThe problem was caused by the Delete method deleting two RestructureFieldDef objects in the list instead of one.
ResolutionFixed Problem on 10/27/1999 in version 1.19 build 1