Comparing strings
No edit summary
No edit summary
Line 1: Line 1:
If you want to compare two strings, case insensitive, use the follow
If you want to compare two strings, case insensitive, use the following:
  <string 1>.compare(<string 2>, true) = 0
  <string 1>.compare(<string 2>, true) = 0
Read more here [https://learn.microsoft.com/en-us/dotnet/api/system.string.compare String.Compare method]
Read more here: [https://learn.microsoft.com/en-us/dotnet/api/system.string.compare String.Compare method]

Revision as of 06:08, 29 March 2023

This page was created by Lars.olofsson@mdriven.net on 2023-03-26. Last edited by Edgar on 2025-01-20.

If you want to compare two strings, case insensitive, use the following:

<string 1>.compare(<string 2>, true) = 0

Read more here: String.Compare method