Hi,
It's always the way, you try and do something simple, and run into a brick wall!
 
OK, I have a button I click to open up a dialog:
 
procedure TForm1.Button15Click(Sender: TObject);
begin
  OpenDialog1.Execute;
  OpenDialog1.FreeOnRelease;
end;
 
When I click the button, the dialog pops up, I select a file, and just want to 
display it in an Edit field as follows:
 
procedure TForm1.OpenDialog1Close(Sender: TObject);
begin
  Edit13.Text := Opendialog1.Filename;  
end;

But what is displayed in the Edit field is rubbish such as  "às" or "@t" - 
which is strange because the contents differ even if I select the same file 
each time!
 
I think this might be something to do with Unicode characters(?) but am not 
sure.
I am using Delphi 5 on Windows XP SP2
 
Any help appreciated.
 
Regards,
Steve Bowker
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to