Answers for "strcomp vba"

VBA
1

compare strings in vba

StrComp ( string1, string2 [, compare ] )
Posted by: Guest on August-21-2020
-1

strcomp vba

Dim MyStr1, MyStr2, MyComp
MyStr1 = "ABCD": MyStr2 = "abcd"    ' Define variables.
MyComp = StrComp(MyStr1, MyStr2, 1)    ' Returns 0.
MyComp = StrComp(MyStr1, MyStr2, 0)    ' Returns -1.
MyComp = StrComp(MyStr2, MyStr1)    ' Returns 1.
Posted by: Guest on September-02-2020

Code answers related to "VBA"

Browse Popular Code Answers by Language