PDA

View Full Version : Something weird is happening in my project after copy to desktop function


clubsoda
02-01-2006, 08:59 AM
I have a menu bar function that allows a user to copy a file to the desktop.

elseif nID == 114 then
--ask for the file to copy
tblFile = Dialog.FileBrowse(true, "Select the file to copy", "AutoPlay\\Docs\\English", "All Files (*.*)|*.*|", "TC_1001217_E.nfo", "", false, true)
--if the user didn't cancel
if tblFile[1] ~= "CANCEL" then
--Get the folder to copy the file to
sFolder = Dialog.FolderBrowse("Please Select the folder to copy the file to.", _DesktopFolder)
--if the user didn't cancel
if sFolder ~= "CANCEL" then
--copy the file to the folder
File.Copy(tblFile[1], sFolder, false, true, true, false, nil)
end
end

After this function completes and the user then uses the menu bar to jump to another page that (should) load a list box from another folder; it will not do so. It is only after the function as mentioned above that the list box will not populate as it should. If I do not perform the above function everything works as it should.

Any ideas what maybe causing this anomaly?

Thanks
Clubsoda