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
Solved

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

Posted on 2015-01-29
2
79 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
2 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 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