Compare str$

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Compare str$

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Compare str$

Post 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.

MarkW
Flowcode v5 User
Posts: 118
Joined: Thu Sep 17, 2009 1:30 pm
Has thanked: 3 times
Been thanked: 11 times
Contact:

Re: Compare str$

Post by MarkW »

Hi Ben,

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

Mark

Post Reply