Page 1 of 1

Compare str$

Posted: Thu Aug 07, 2014 2:15 pm
by MarkW
Hello,

Can anyone tell me if the strings that are being compared need to be same array size?
Lets say str1 has array size of 10 elements and str2 has array of 5 elements. Will the
compare str$ function work? Help files dont really elaborate too much on that.....

Thanx

Mark

Re: Compare str$

Posted: Fri Aug 08, 2014 10:01 am
by Benj
Hi Mark,

Yes strings of different lengths can still be compared and should work fine as long as there is room in both the string variables for the null termination.

Let me know if you have any problems.

Re: Compare str$

Posted: Fri Aug 08, 2014 2:52 pm
by MarkW
Hi Ben,

Thanx, will give that a try.....will post results for others to see.

Mark