And then ??
Everybody who has fixed his personal copy of QB64 is incompatible with the entire rest of the QB64 user base. Imagine you post a code snip which does invoke _INSTRREV in the way you want it (or what you believe is the right way), then this code will pobably give unexpected results to all users, who paste & run it in their own and most probably unpatched QB64 version.
BTW - I fully agree with Fellippes stance on this function, but don't be in the mood for a war of words here. Following your discussions about this topic throughout the day just reminds to Clippy. Are you?
@Petr check the example code in the wiki. It starts search as -1 as intended (and as explained in the wiki article too). http://www.qb64.org/wiki/INSTRREV
@Petr check the example code in the wiki. It starts search as -1 as intended (and as explained in the wiki article too). http://www.qb64.org/wiki/INSTRREV
we have a great teamExactly.
Nice examples. They won't reveal this error. But we have a great team where one team player found a bug and another wrote a program to fix it. :-D
πάντων χρημάτων μέτρον ἐστὶν ἅνϑρωπος, τῶν μὲν ὄντων ὡς ἔστιν, τῶν δὲ οὐκ ὄντων ὡς οὐκ ἔστιν
Homo est mensura omnium rerum: entium ut sint, non entium ut non sint.
Does it have to be one or the other? Could there be a _INSTRREVf and a _INSTRREVs ?I can imagine that the forth parameter Mode%, that is absent in QB64 version, can be converted to activate the wanted behaviour of the function by the user.