TDirectoryEdit.Longname ????????? lazarus / 31-LCL ---------------------------------------------------------------------- snipexandy · 2011-05-30 12:13 where are TDirectoryEdit.LongName ? where this property in the component LongName TDirectoryEdit? if not there eh bug or is it still needs some functionality will be added? ---------------------------------------------------------------------- Blaazen · 2011-05-30 13:05 What do you mean "LongName" ? There is property Directory - it is full path; and RootDir - it is where the dialog is opened. ---------------------------------------------------------------------- snipexandy · 2011-05-31 14:22 this property to which I refer in this kind of gone back to edit this to manipulate the directories find on a snippet of code from bladeenc I'm trying to behave with his example to lazarus. fix some bugs in the code more this property is making life harder for me.  the snippet of code is this:  if DirectoryEdit1.Text [Length (DirectoryEdit1.Text)] <> '\' then      OutputFileName:= DirectoryEdit1.LongName + = '\'+ ChangeFileExt (ExtractFileName (FileNameEdit1.filename). 'mp3')    else      OutputFileName:= DirectoryEdit1.LongName + ChangeFileExt (ExtractFileName (FileNameEdit1.filename). 'mp3'); ---------------------------------------------------------------------- Blaazen · 2011-05-31 14:45 So it is Delphi example. You can use property Directory (instead of LongName) and DirectorySeparator (instead of '\', beacause in Unix it is '/') Code: [Select]if DirectoryEdit1.Text [Length (DirectoryEdit1.Text)] <> DirectorySeparator then      OutputFileName:= DirectoryEdit1.Directory  + =  DirectorySeparator+ ChangeFileExt (ExtractFileName (FileNameEdit1.filename). 'mp3')    else      OutputFileName:=  DirectoryEdit1.Directory  + ChangeFileExt (ExtractFileName (FileNameEdit1.filename). 'mp3'); You should also check if the directory exists using function: Code: [Select]if DirectoryExists(DirectoryEdit1.Directory)=true then ....or you can make Code: [Select]DirectoryEdit1.ReadOnly:=true;(it will force users to select the path in dialog and not edit it directly) ---------------------------------------------------------------------- eny · 2011-05-31 14:58 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i OutputFileName :=  AppendPathDelim(DirectoryEdit1.Directory )  +                 ChangeFileExt (ExtractFileName (FileNameEdit1.filename). 'mp3') ---------------------------------------------------------------------- snipexandy · 2011-06-01 21:43 I tried using the AppendPathDelim this may appear the following error: example1.pas . Error: Identifier not found "AppendPathDelim" But the function exists in file.pas. I'm still adapting to lazarus and know little about it the more I believe that the function to be declared for use. how can I do? ---------------------------------------------------------------------- eny · 2011-06-01 21:51 Add unit FileUtil... ---------------------------------------------------------------------- CM630 · 2018-11-20 19:48 It is now in LazFileUtils.