Solmos
11-04-2007, 01:41 PM
Hi
I needed one function for search files with cancel button (StatusDlg)
for example:
StatusDlg.Show()
r = File.Find(Drive.."", "*.exe", false, false,nil, nil);
error = Application.GetLastError();
if error ~= 0 then
else
if (r == nil) then
else
for index, path in r do
x = StatusDlg.IsCancelled();
if x == true then
StatusDlg.Hide();
Application.ExitScript();
end
StatusDlg.SetTitle("xxx");
pn = String.SplitPath(path);
rr = pn.Filename..""..pn.Extension;
StatusDlg.ShowProgressMeter(false);
StatusDlg.SetMessage("");
StatusDlg.SetStatusText(rr);
--------others actions here...
end
end
end
StatusDlg.Hide()
if press the button cancel, function is not stop!!!???
:huh:huh:huh:huh
I needed one function for search files with cancel button (StatusDlg)
for example:
StatusDlg.Show()
r = File.Find(Drive.."", "*.exe", false, false,nil, nil);
error = Application.GetLastError();
if error ~= 0 then
else
if (r == nil) then
else
for index, path in r do
x = StatusDlg.IsCancelled();
if x == true then
StatusDlg.Hide();
Application.ExitScript();
end
StatusDlg.SetTitle("xxx");
pn = String.SplitPath(path);
rr = pn.Filename..""..pn.Extension;
StatusDlg.ShowProgressMeter(false);
StatusDlg.SetMessage("");
StatusDlg.SetStatusText(rr);
--------others actions here...
end
end
end
StatusDlg.Hide()
if press the button cancel, function is not stop!!!???
:huh:huh:huh:huh