Please enable JavaScript to view this site.

 

bool = StrSameText(sOne, sTwo)

 

This macro function compares two strings, sOne and sTwo, and returns true if both strings are the same, or the same apart from some uppercase/lowercase differences.

 

The function StrSameText is a special case of StrCompare, as shown by the identity below.

StrSameText(sOne,sTwo) ≡ (StrCompare(sOne,sTwo,false) == 0)

The functionality of StrSameText can also be reproduced using the LowerCase function.

bIsSameText ≡ (LowerCase(sOne) == LowerCase(sTwo))

See also: StrContains.

 


Topic 178845, last updated on 18-Apr-2020