Delphi Programming

StrComp Routine

Category page

2,918pages on
this wiki
Add New Page
Add New Page Talk0

StrComp Routine Edit

Compares two strings with case sensitivity.

Unit SysUtils


[Delphi] function StrComp(const Str1: PAnsiChar, const Str2: PAnsiChar): Integer;

Description Call StrComp to compare two null-terminated strings, with case sensitivity. The return value is indicated in the following table:

Return value Condition

<0           Str1 sorts before Str2
=0           Str1is the same as Str2
>0           Str1 sorts after Str2

Note: When working with International characters, use AnsiStrComp instead.

Related Information

  • AnsiStrComp
  • StrIComp
  • StrLComp
  • StrLIComp

Abhijeet -- 13:28, 4 February 2009 (UTC)

Pages in category "StrComp Routine"

This category contains only the following page.

Also on Fandom

Random Wiki