Q about ShellTreeView

In my appclication I'm using ShellTreeView component. And in one line I need to do this

procedure Button1Click(Sender: TObject);
var
f: textfile;
begin
assignfile(f,'c:somefile.txt');
reset(f);
closefile(f);
end;

this will not work if in any moment before calling this procedure any property or method of ShellTreeView was called.
How can I solve this and do reset(f), because in this line error is apearing?

Comments

  • not sure what you are asking but does the file exists? cause reset opens an existing file only. refrase yourself.

    ps: to make a file use rewrite;
  • : not sure what you are asking but does the file exists? cause reset opens an existing file only. refrase yourself.
    :
    : ps: to make a file use rewrite;
    :

    file exists for sure but it seems that I can't open it because ShellTreeView is making this commands unavalaible (reset, rewrite...)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion