Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: strindex strreplace
I have to Strings (n & q) that are being assigned by a ItemExtract on a list. The list comes from text files.
If I print their values Using Message, I can see that the values are the same. However if I use either "if n == q" or strcmp(n,q) the strings always evaluate as not equal.
n1=StrReplace(n,@tab,"!") n1=StrReplace(n1," ","?") n1=StrReplace(n1,@CR,"#") n1=StrReplace(n1,@LF,"$") q1=StrReplace(q1,@tab,"!") q1=StrReplace(q1," ","?") q1=StrReplace(q1,@CR,"#") q1=StrReplace(q1,@LF,"$") n2=StrLen(n) q2=StrLen(q) Message(strcat(n2," ",q2),strcat(n1,@crlf,q1))Look at that info. Is there a perfect match. Is everything the same case?
Article ID: W13332
Filename: Compare Two Strings.txt
File Created: 2001:01:09:09:26:26
Last Updated: 2001:01:09:09:26:26