TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Janis Peksa
NA
152
50.9k
brackets change but need only from 'where' to end.
Feb 23 2011 2:45 AM
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 ?
Reply
Answers (
2
)
Increasing Textbox amount as button is clicked.
Create a Windows application with serial validation at run time