in my AMS project I have a button that would like to copy files from my project onto a users computer, and I would like to use a progress bar object rather than a status dialog message to display the progress of the files being copied. I referred to the help documents and I scoured the forums with no clear examples, the best I found was something like this:
Progress.SetVisible("Progress1", true);
function CopyCallback(a,b,c,d,e)
Progress.StepIt( "Progress1")
return true
end
File.Copy("Docs\\*.*", strFilePath, true, true, false, true, CopyCallback);
Progress.SetVisible("Progress1", false);
This doesn't work too well because while the files are being copied the progress bar object is not in synch with the actual file copy process, it blinks erratically. The settings on the Progress object are the default settings, Range 0-100...Step is 10...XP Style...Bars. So am I getting the code wrong? Am I suppose to add other codes elsewhere? Any help would be greatly appreciated as I have spent hours trying to figure this out. Thank you.
Progress.SetVisible("Progress1", true);
function CopyCallback(a,b,c,d,e)
Progress.StepIt( "Progress1")
return true
end
File.Copy("Docs\\*.*", strFilePath, true, true, false, true, CopyCallback);
Progress.SetVisible("Progress1", false);
This doesn't work too well because while the files are being copied the progress bar object is not in synch with the actual file copy process, it blinks erratically. The settings on the Progress object are the default settings, Range 0-100...Step is 10...XP Style...Bars. So am I getting the code wrong? Am I suppose to add other codes elsewhere? Any help would be greatly appreciated as I have spent hours trying to figure this out. Thank you.
Comment