An Error in CompareTags
Posted: Fri May 07, 2010 9:37 am
In CompareTags function we found an error: invalid casting
But if we working with an Unicode Strings, in this realization if we past a lot of hyperlinks and all of them are started with the same letter, they are recognized like ONE tag, and after save we have ONLY ONE hyperlink.
May be, this line must be written like this:
May be, function must be written in both versions: for working with ANSI and Unicode strings?
Code: Select all
Result := StrComp(PRVAnsiChar(Tag1),PRVAnsiChar(Tag2))=0
May be, this line must be written like this:
Code: Select all
Result := StrIComp(PChar(Tag1), PChar(Tag2)) = 0