Hello. I can not get rid of the desire to maintain the dialogue, but it is necessary that way. Help me please. Constantly gives an error about access to the network. In gratitude, I will not give up studying Delphi (well, I just like it).

Added.

Sorry, of course. And the folder is accessible to all. Everything is simple, but on Save problems, writes there is no access.

procedure Button1Click(Sender: TObject); begin ... Edit1.Text:=ShowBrowseFolderForm( 'Папка сохранения' ); ... // форма с выбором папки, все // отражается в Edit end; procedure Button2Click(Sender: TObject); begin Memo1.Lines.SaveToFile(Edit1.Text+'namefale'); end; 
  • one
    Do you have rights to write to a network folder?) wow) - Vladimir Klykov
  • Folder open to all - Pioner
  • one
    Give a minimal code sample though, not everyone is interested in modeling your mistake - Sh4dow

1 answer 1

Try

 Memo1.Lines.SaveToFile(Edit1.Text + PathDelim + 'namefale'); 

And in general, try to show the file name to make sure everything is ok:

 Showmessage(Edit1.Text + PathDelim + 'namefale'); 
  • I tried. Does not work. The file name is valid (and .txt). Can not create. And in a local folder - no problem. What is PathDelim? Not found. I wait with patience. - Pioner
  • PathDelim is a separator / or \ depending on the platform. - androschuk