Announcement
Collapse
No announcement yet.
hit StatusDlg cancel button error
Collapse
X
-
lines 258 call function DownloadMySQL
line65 is "FTP.Download(MySQL_64_FILENAME, MySQL_64_PATH, DownloadCallback)",in function DownloadMySQL
line 12 is Application.Exit(); in CallbackFunction
CallbackFunction like below
function DownloadCallback (nDownloaded, nTotal)
-- Convert total and downloaded bytes into formatted strings
sDownloaded = String.GetFormattedSize(nDownloaded, FMTSIZE_AUTOMATIC, true);
sTotal = String.GetFormattedSize(nTotal, FMTSIZE_AUTOMATIC, true);
StatusDlg.SetMessage(SetupData.GetLocalizedString( "MSG_DOWNLOADING_FILE"));
StatusDlg.SetMeterRange(0,65534);
-- Set meter position (fraction downloaded * max meter range)
StatusDlg.SetMeterPos((nDownloaded / nTotal) * 65534);
-- Continue with the download.
if StatusDlg.IsCancelled() then
FTP.Disconnect();
Application.Exit();
return false;
else
return true;
end;
return true;
end
Comment
-
Comment