Hello, I have problem with my code.
Here is my code: http://paste.php.lv/ddbd56642652602e4760a3c187b1e944?lang=csharp
The problem is whan I enter - select len(aaa) from bbb where a=1 or a=2 or a=3 and b=2 or b=3 and c=2 or c=3
My code colors 'select, len, where, or, and'.
Whan press button it makes brackets from where to end and
makes likes this - select len(aaa) from bbb where ((a=1 or a=2 or a=3) and ((b=2 or b=3) and ((c=2 or c=3))))
But whan I press again button it's replace all '(' and ')' with ' '.
And ends again brackets.
len(aaa) is replaced to lenaaa and it's not correct.
Maybe can someone help me out, how to solve this problem ?
Brackets change but need only from 'where' to end.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Janis Peksa93 pointsPosted Feb 22, 2011, 10:07 PM EST
http://paste.php.lv/c14b680caf458f8e9760dac8005afb5b?lang=php
But not working correct.
Maybe some clues ?
Janis Peksa93 pointsPosted Feb 23, 2011, 3:20 AM EST