Wikia

Delphi Programming

StrComp Routine

Category page

2,918pages on
this wiki
Talk0

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.

Around Wikia's network

Random Wiki