Macro for comparing a string

Macro for comparing two strings

Dim a as string
Dim b as string
Dim k as integer

a=”ramanean”
b=”ramanean”

k = StrComp(a, b)
if K=0 then
Msgbox(”String are Equal”)
Else
Msgbox(”Strings are not Equal”)
End if
End Sub

This entry was posted on Wednesday, December 17th, 2008 at 9:25 am and is filed under Webmaster. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.

Comments are closed.