hi , i new on plugin and callbackoption make me problem with progress bar.
simply i unpack an archive with:
ZipEx.ExtractRAR(_SourceFolder .. "\\files.rar", _SourceFolder .. "\\testextract", "testpass", "");
error = Application.GetLastError();
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
else
Dialog.Message("Text", "Text");
end
and this works good but no Progress indicator shown.
in examplecode callbackoption are function to make indicator possible:
function FilesCallback(_SourceFolder)
if (status == ZipEx.GENERAL) then
-- general progress
Progress.SetText("ProgressBar", path);
Progress.SetCurrentPos("ProgressBar", value);
elseif (status == ZipEx.COMPRESSING) then
-- compressing/decompressing files
Label.SetText("CurrentFile", path..", ratio="..value.."% compressed");
elseif (status == ZipEx.ADDING) then
-- adding files
Label.SetText("CurrentFile", path..", size="..value.." bytes");
end
end
my problem ist to join the 2 parts :
on first line with path:
function FilesCallback(_SourceFolder .. "\\files.rar", "35", "0", )
results bad syntax and i no idea why. Okay i alive 27 hour without sleep but this i not understand.
please give me a way on the succesroad.
simply i unpack an archive with:
ZipEx.ExtractRAR(_SourceFolder .. "\\files.rar", _SourceFolder .. "\\testextract", "testpass", "");
error = Application.GetLastError();
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
else
Dialog.Message("Text", "Text");
end
and this works good but no Progress indicator shown.
in examplecode callbackoption are function to make indicator possible:
function FilesCallback(_SourceFolder)
if (status == ZipEx.GENERAL) then
-- general progress
Progress.SetText("ProgressBar", path);
Progress.SetCurrentPos("ProgressBar", value);
elseif (status == ZipEx.COMPRESSING) then
-- compressing/decompressing files
Label.SetText("CurrentFile", path..", ratio="..value.."% compressed");
elseif (status == ZipEx.ADDING) then
-- adding files
Label.SetText("CurrentFile", path..", size="..value.." bytes");
end
end
my problem ist to join the 2 parts :
on first line with path:
function FilesCallback(_SourceFolder .. "\\files.rar", "35", "0", )
results bad syntax and i no idea why. Okay i alive 27 hour without sleep but this i not understand.
please give me a way on the succesroad.
Comment