muratboy31 Posted August 10, 2013 Share Posted August 10, 2013 merhaba arkadaşlar, result = Dialog.FileBrowse(true, "Load File", _DesktopFolder, "Microsoft Word Document (*.doc)|*.doc|All Files (*.*)|*.*|", "", "", false, true); if (result[1] ~= "CANCEL") then Dialog.Message("Aşağıdaki dosya seçildi :", result[1]); end bunu path'i veri tabanına yazdırıyorum fakat geri çekerken listbox a böyle düşüyor \ slash lar kayboluyor, onları nasıl ekleyebilirim acaba ? Quote Link to comment Share on other sites More sharing options...
Kral__ Posted August 10, 2013 Share Posted August 10, 2013 load yaparken "\" yerine "\\" koyucaksın ;) Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted August 10, 2013 Share Posted August 10, 2013 (edited) StringReplace() ile tek olan \ işaretleri çift ile değiştirip yazdırırsan sorun kalmayacağını tahmin ediyorum. -- Display a single-selection file browse dialog result = Dialog.FileBrowse(true, "Load File", _DesktopFolder, "Microsoft Word Document (*.doc)|*.doc|All Files (*.*)|*.*|", "", "", false, true); -- If CANCEL was not chosen, then let's get the file path if (result[1] ~= "CANCEL") then Dialog.Message("You chose the following file", String.Replace(result[1], "\\", "\\\\", false)); end Edited August 10, 2013 by DivaneTR Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.