The example they give seems pretty straightforward, pass the two strings you're interested in to this procedure and 'result' will be 0 if they match and something else if they don't (in this case Tform1 is just an example class that uses CompareStrings as a method):
Code:
procedure TForm1.CompareStrings(const string1, string2: string);
var
result : Integer;
begin
//uncomment if case-sensitive:
result := AnsiCompareStr(string1, string2);
//uncomment to ignore case:
// result := AnsiCompareText(string1, string2);
end;
Quote:
|
...and no it doesnt have any script like that...
|
Well it won't, until you edit it in. Have you tried compiling it 'as-is' to make sure you have all your unit-code in-place (your build environment is valid) and it will actually re-compile?
In any event, if no actual Delphi programmers respond to this post and you need more in-depth explanations, you might try a more delphi-specific board such as these:
http://www.delphipages.com/forum/forumdisplay.php?f=3
http://www.programmersheaven.com/mb/Delphi/Board.aspx
.