100% agree with mdijkens and RhoSigma. I have been caveating all along yesterday when this was discussed that the code is poorly written but didn't have time to dig in and clean up because I wasn't clear on all it's goals. So I went the way of quick fix by making a wrapper for Asc() when I learned that was way Asc("") just returned 0 from where Aurel's code came from, Oxygen Basic. Thanks to RhoSigma I learn it would work have worked for Chr$(0) but who uses that?
But Paul Does solution was more elegant just quit the function once you have no string left to check, no wrapper needed much more effecient. And I liked his solution for checking if empty string better than what I used first.
If all this is, is run through a string and classify and count types should be a piece of cake to clean up. Might have even taken less time than yak about quick fixes! If this is for QB64 then we dont even need to worry about left and right brackets.
But Paul Does solution was more elegant just quit the function once you have no string left to check, no wrapper needed much more effecient. And I liked his solution for checking if empty string better than what I used first.
If all this is, is run through a string and classify and count types should be a piece of cake to clean up. Might have even taken less time than yak about quick fixes! If this is for QB64 then we dont even need to worry about left and right brackets.
b = b + ...