Page 1 of 1

comparing two alpha numeric strings?

Posted: Fri Jul 06, 2007 1:51 am
by mallikharjuna
Hi All,

How to compare two alpha numeric strings,it may include '/' and other special characters also,any function exist for this?

Thanks
Malli

Posted: Fri Jul 06, 2007 2:04 am
by ArndW
Sure, try "String1=String2" :)

String comparisons are commonly used in DS, so unless you narrow down your question you won't get more than a generic answer.

Posted: Fri Jul 06, 2007 7:40 am
by kcbland
Use = or <> or # or NE, but if the values are numbers but need to be compared as strings (00012345 = 12345 numerically but not by string) then use COMPARE(x,y,'L'). Check your DS BASIC manual for more details on COMPARE.