Now then. I've got an expression builder that builds expressions (so far so good) in a normal boolean way like:
((w AND x) OR y) AND (NOT z)
and I need to get it into reverse polish, which would look like (as far as I can gather):
w x AND y OR z AND NOT
Correct me if I'm wrong

Actually getting it into reverse polish isn't my main concern (at the moment) - I'm just struggling a bit to see how I'm going to balance all the brackets properly. Has anyone ever tried to do anything like this in VB? I could do it in at least two other languages but that doesn't help me whatsoever 'cos it has to be in VB!

Any help would be greatly appreciated!

Toot