An Error in CompareTags

General TRichView support forum. Please post your questions here
Post Reply
x_ginger
Posts: 12
Joined: Fri May 07, 2010 9:22 am

An Error in CompareTags

Post by x_ginger »

In CompareTags function we found an error: invalid casting

Code: Select all

Result := StrComp(PRVAnsiChar(Tag1),PRVAnsiChar(Tag2))=0
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:

Code: Select all

Result := StrIComp(PChar(Tag1), PChar(Tag2)) = 0
May be, function must be written in both versions: for working with ANSI and Unicode strings?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You use old version of TRichView.
This bug was already fixed.
Your fix is correct.
x_ginger
Posts: 12
Joined: Fri May 07, 2010 9:22 am

Post by x_ginger »

But our version is 1.12.0.4 - is it not last version??
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

A newer version is available for registered users.
Send me a private message with information allowing to identify you as a registered user, I'll give you download links.
Post Reply