プロシージャ/ファンクションにファイル名パラメータを渡す場合は、TFilename
またはString
を使用する必要があります。TFilenameの代わりにStringを使用する必要がありますか?
違いがある場合、それは何ですか、String
を使用した場合の潜在的な影響は何ですか?
procedure TForm1.OpenFile(const AFilename : String);
begin
//Open the file if it exists
...
end;