PDA

View Full Version : Cancel in Browse Dialog


dorkauf89
01-21-2008, 10:16 AM
When I show the browse dialog for the user to pick a place to save a file, if I press Cancel, it saves the file as CANCEL in the CD_Root folder. Why? How do I do that when they press the cancel, nothing will happen and the window will diapear? THANKS

RizlaUK
01-21-2008, 11:02 AM
tbFiles = Dialog.FileBrowse(false, "Save File As..", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);
if tbFiles[1] ~= "CANCEL" then
--Your Code Here
end

dorkauf89
01-21-2008, 11:16 AM
I think I tryed that... I'll try again