clueless
08-03-2006, 05:02 AM
Hi can anyone tell me why this bit of code wont work?
local SellectedGif = {};
local tDest = "";
tDest = _SourceFolder.."AutoPlay\\WorkingFolder\\";
tDest = tDest.."a.gif";
SellectedGif = Dialog.FileBrowse(true, "Locate the .Gif File", _DesktopFolder, "All Files (*.*)|*.*|", "", "gif", false, false);
if SellectedGif[1]~="" and SellectedGif[1]~=IDCANCEL then
SourceGif = SellectedGif[1];
File.Copy(SourceGif, tDest, true, true, false, true, nil);
if File.DoesExist(tDest) then
Label.SetVisible("gifOK", true);
Input.SetText("Input1",String.SplitPath(SourceGif).Filename..String.Spli tPath(SourceGif).Extension);
end
end
its a simple copy function but i cant seem to get it to run
local SellectedGif = {};
local tDest = "";
tDest = _SourceFolder.."AutoPlay\\WorkingFolder\\";
tDest = tDest.."a.gif";
SellectedGif = Dialog.FileBrowse(true, "Locate the .Gif File", _DesktopFolder, "All Files (*.*)|*.*|", "", "gif", false, false);
if SellectedGif[1]~="" and SellectedGif[1]~=IDCANCEL then
SourceGif = SellectedGif[1];
File.Copy(SourceGif, tDest, true, true, false, true, nil);
if File.DoesExist(tDest) then
Label.SetVisible("gifOK", true);
Input.SetText("Input1",String.SplitPath(SourceGif).Filename..String.Spli tPath(SourceGif).Extension);
end
end
its a simple copy function but i cant seem to get it to run