Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

I  want  to  exclude  values  which  contains  string  which has "<"

Posted on 2015-01-29
2
Medium Priority
?
102 Views
Last Modified: 2016-02-17
Here  DTQCResult  is  a  DataTable.
Some  time  it  happens  that  ResultValue comes  as ">50" or "<40" etc  so  I  want  to  exclude  those  values  which contains operators ">" or "<". I  was  successful  in  exclusing  ResultValue  that  comes  "NA". Please  help.
Following is  line  where  I  have  to  do  it.So  that  in  deSelectect  does  not  have  values  with ">" or this "<"

DataRow[] drSelectect = DTQCResult.Select("CheckCol=1 AND ResultValue <> 'NA'");

Open in new window


Please  it little  bit  urgent
0
Comment
Question by:ADITYA RAO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 40577189
HI,

pls try

DataRow[] drSelectect = DTQCResult.Select("CheckCol=1 AND ResultValue <> 'NA'" AND ResultValue NOT LIKE '*<*' AND ResultValue  NOT LIKE '*>*'");



Regards
0
 

Author Closing Comment

by:ADITYA RAO
ID: 40577204
Thank you very  much  it  worked  perfectly
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question