vaultworld
asked on
How do you compare multiple strings at once
To: All
I would like to compare multiple strings at once. I want to see if there all the same.
The below example doesn't work.
Dim stringA as String
Dim stringB as String
Dim stringC as String
stringA = "help"
stringB = "help"
stringC = "help"
if(stringA = stringB = stringC) Then
MessageBox.show("all equal")
End If
I would like to compare multiple strings at once. I want to see if there all the same.
The below example doesn't work.
Dim stringA as String
Dim stringB as String
Dim stringC as String
stringA = "help"
stringB = "help"
stringC = "help"
if(stringA = stringB = stringC) Then
MessageBox.show("all equal")
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER