copydataset won't find dataset if it's the last on the list

git-svn-id: trunk@7852 -
This commit is contained in:
jesus 2005-09-29 17:26:03 +00:00
parent dd485801cc
commit e8f011bf1e

View File

@ -134,7 +134,7 @@ begin
DSN:=Items[ItemIndex];
DS:=Nil;
I:=0;
While (DS=Nil) and (I<F.ComponentCount-1) do
While (DS=Nil) and (I<F.ComponentCount) do
if (F.Components[i] is TDataset) and
(F.Components[i].Name=DSN) then
DS:=F.Components[i] as TDataset