Is there a Delphi (7) or Windows function which checks a potential 
filename for invalid filename characters and replaces invalid chars with 
some other char?

I have a simple function as follows:
  for i := 1 to length(Result) do
   if Result[i] in ['\','/',':',';','*','?','"','<','>','|','+','='] 
then
    Result[i] := ' ';

But I suspect this will cause problems with unicode filenames.

The filename is being constructed from information stored in a database 
which could contain unicode chars.

Thanks,
Ross. 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to