STRCMP: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:_STRCMP}} The _STRCMP function compares the relationship between two strings, comparing upper or lower case. {{PageSyntax}} : {{Parameter|comparison%}} = _STRCMP({{Parameter|string1$}}, {{Parameter|string2$}}) {{PageDescription}} * Function returns -1 when {{Parameter|string1$}} is less than {{Parameter|string2$}}, 0 when equal or 1 when {{Parameter|string1$}} is greater than {{Parameter|string2$}}. * Upper case letters are valued less than lo...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:


{{PageSeeAlso}}
{{PageSeeAlso}}
* [https://qb64phoenix.com/forum/showthread.php?tid=1290 Featured in our "Keyword of the Day" series]
* [[_STRICMP]]
* [[_STRICMP]]
* [[STR$]]
* [[STR$]]

Latest revision as of 18:13, 25 May 2024


The _STRCMP function compares the relationship between two strings, comparing upper or lower case.


Syntax

comparison% = _STRCMP(string1$, string2$)


Description

  • Function returns -1 when string1$ is less than string2$, 0 when equal or 1 when string1$ is greater than string2$.
  • Upper case letters are valued less than lower case letters in the ASCII evaluation.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link