Switch to full style
ASP/ASP.net examples
Post a reply

compare strings

Thu Mar 31, 2011 12:26 am

Following example compare two strings
Code:
<% 
Dim strExample1 strExample2 
'initialization 
strExample1 = "first to do" 
strExample2 = "second to do" 
'
compare the two strings 
intTest
strComp(strExample1 strExample2
'if condition on compare
If intTest= 0 Then 
Response.Write "Strings are the same" 
'
different strings
Else 
Response.Write "strings are different" 
End if 
%> 




Post a reply
  Related Posts  to : compare strings
 compare two strings     -  
 Compare two strings in php     -  
 compare strings with if statement in php     -  
 Sort strings java-Sorting Array of Strings     -  
 compare two sets     -  
 Compare directories     -  
 String compare equality     -  
 How to compare two arrays in java     -  
 Use the boolean compare operators     -  
 Integer value compare with equal sign     -  

Topic Tags

ASP Strings