Fandom

Delphi Programming

StrComp Routine

Category page

2,918pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

StrComp Routine Edit

Compares two strings with case sensitivity.

Unit SysUtils

Syntax


[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 --193.113.57.165 13:28, 4 February 2009 (UTC)

Pages in category "StrComp Routine"

This category contains only the following page.

Also on Fandom

Random Wiki