Hi All
i am new to VB Script .... I need your help
Can any body tell me how i can i compare strings in VB Script right know i am doing it using Javascript and it is working fine but i have to do it in asp/VBscript the code for ref if here....
<script type="text/javascript">
var test1="hello,there,come,never,love,this,and,that,it,is,not,good";
var test1_array=test1.split(",");
var test2="good,never,come,there,love,is,that,it,and,hello";
var test2_array = test2.split(",");
var test1_Value;
var i=0, j = 0;
var found;
test1_Value ="";
for (i=0; i<=test1_array.length; i++)
{
found =0
for(j=0; j<=test2_array.length; j++)
{
if(test1_array
== test2_array[j])
{
found =1
}
}
if (found ==0 )
{
if (test1_Value == "")
{
test1_Value = test1_array
}
else
{
test1_Value = test1_Value + "," + test1_array
}
}
}
alert( test1_Value)
</script>