提示[Error] PSInserT.pas(66): Undeclared identifier: 'GetAllFileName'
procedure Tfrmpict.BitBtn2Click(Sender: TObject);
var
dirlist:TStringList;
i:Integer;
begin
inherited;
if chk_road.Checked then
begin
dirlist:=TStringList.Create ;
dirlist.Clear;
try
GetAllFileName(DirectoryListBox1.Directory,dirlist);
if dirlist.Count>0 then
begin
Gauge1.MinValue :=0;
Gauge1.MaxValue:= dirlist.Count-1;
for i:=0 to dirlist.Count-1 do
begin
with ADOQuery1 do
begin
Insert;
Fields[0].AsString:=copy(dirlist.Strings[i],1,pos('.',dirlist.Strings[i])-1);
if imagesavetosql(ADOQuery1,dirlist.Strings[i] )=false then
begin
ShowMessage('导入'+dirlist.Strings[i]+'.jpg图片时出错');
Abort;
end;
Post;
end; //with
Gauge1.AddProgress(1);
end; //for
end //if
else
ShowMessage('该目录下不存在JPG类型图片');
finally
dirlist.Free;
end;
end
else
ShowMessage('请执行路径选取操作');
//Close;
end;
提示:[Error] PSInserT.pas(66): Undeclared identifier: 'GetAllFileName',要如何处理?