I know that \ is not valid character but what are the others ?
"Félix GUILLEMOT" wrote:
--
To See what real programmers do in their spare time visit
http://jamie12.home.mindspring.com
home of PC bit software ..
Please send comments about my work .
for i := 0 to Length(path) -1 do
if path[i] = 'invalid_character' then warning....
there is a function in shlwapi.dll which should fit your need: PathIsURL
I'm using this function this way:
function IsPathURL(const S: string) : boolean;
// Tests a given string to determine if it conforms to a valid URL format.
begin
Result := False;
try
Result := PathIsURL(PChar(S));
except
end;
end;
BTW I'm using ShLwapi.pas converted by Marcel van Brakel.
cu,
Michael
"DoesntMatter" <no...@here.yet> a écrit dans le message de news:
3f297a98$1...@newsgroups.borland.com...
>
> Hi,
> Im sure theres a more elegant way to solve this but this is what came to
my mind:
>
> for i := 0 to Length(path) -1 do
> if path[i] = 'invalid_character' then warning....
>
>
> "Félix GUILLEMOT" <felix.g...@beaconseil.com> wrote:
> >Does someone knows a function that tells if a path (+document) contains
> >invalid characters ?
> >ex : /myPath/Mydoc.htm
> >is correct but
> >/mypath/scrollbars=yes,width=420,height=400
> >or /my-è((è-_path/doc.htm
> >or /hkjh'(-"'(-"'(-ùù^**/*$ù$'(-'"(-'ykjhfhgf.doc
Thank you very much (danke sehr ?) for your quick reply on newsgroups
>BTW I'm using ShLwapi.pas converted by Marcel van Brakel.
But where an i find this unit ? I don't have it with D5 sources.
Can you eventually send it to me ?
"Michael Fritz" <spam_...@yahoo.de> a écrit dans le message de news:
3f2a104a$1...@newsgroups.borland.com...
"Félix GUILLEMOT" <felix.g...@beaconseil.com> wrote in message
news:3f2a21be$1...@newsgroups.borland.com...