473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

LIKE operation on SYSTEM.DECIMAL

Hello all,

I am having an issue with a dataview.RowFilter expression.

I am trying to filter a dataview with the following:

DV_TXN.RowFilter = "MCC LIKE '" & MCCselection & "'"

But get the following error:
"Cannot perform 'Like' operation on System.Decimal and System.String"

The datatype of the "MCC" column in the oracle table is NUMBER.

Any ideas on how I can filter this??

Thanks in advance!
--
Kevin
Jul 21 '05 #1
2 5859
You can create an expression column on your datatable that simply converts
the decimal column to string and you can compare on this new column.

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"ksedran" <ks*****@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
Hello all,

I am having an issue with a dataview.RowFilter expression.

I am trying to filter a dataview with the following:

DV_TXN.RowFilter = "MCC LIKE '" & MCCselection & "'"

But get the following error:
"Cannot perform 'Like' operation on System.Decimal and System.String"

The datatype of the "MCC" column in the oracle table is NUMBER.

Any ideas on how I can filter this??

Thanks in advance!
--
Kevin

Jul 21 '05 #2
To add a little bit to the text from Bill.
You can create an expression column on your datatable that simply converts
the decimal column to string and you can compare on this new column.


You can create an extra column in your datatable. Direct with that command
you can use the expression to fill the data that than converts the decimal
column to string. Than you can compare on this new column.

By the way, did you know that there are newsgroups
microsoft.public.dotnet.framework.adonet
microsoft.public.dotnet.languages.vb

That are newsgroups more specialized on questions like this, where for this
question the first one is in my opinion the right one.

Cor
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Dave Robinson | last post by:
I was wondering if anyone could help me with a problem I'm having. I've been using Dreamweaver to create a hotel booking system for a friend of mine, using MySQL (version 4.0.21) and PHP 5. The...
2
by: Maor Mishkin | last post by:
I've changed from double to decimal calculations but I can't find a math library for decimal (mainly for sqrt), Thanks Maor
9
by: MDoyle | last post by:
Here is the easiest question you’ll get all day from a complete newbie. I installed Visual Studio on my laptop last night and have been tryin to write my very first C# programs this morning. I’m...
1
by: patrick | last post by:
I have tried using 2 type systems to get this to compile but it still gets the same error: Public MustInherit Class _Applications Private _AppID As System.Decimal Private _AppPosition As...
2
by: ksedran | last post by:
Hello all, I am having an issue with a dataview.RowFilter expression. I am trying to filter a dataview with the following: DV_TXN.RowFilter = "MCC LIKE '" & MCCselection & "'" But get the...
8
by: Pieter | last post by:
Hi, I'm having some weird problem using the BackGroundWorker in an Outlook (2003) Add-In, with VB.NET 2005: I'm using the BackGroundWorker to get the info of some mailitems, and after each item...
4
by: Helge Jensen | last post by:
In C# 2.0 System.IO.Stream is declared as: public class Stream: ..., IDisposable { ... public void Dispose(); public void Dispose(bool); IDisposable.Dispose(); } Which must be a...
10
by: maori | last post by:
You can try this in javascript: A) alert( 1.9 * 50 ); = 95 B) alert( 2.9 * 50 ); = 145 C) alert( 3.9 * 50 ); = 195 D) alert( 4.9 * 50 ); = 245.00000000000003 E) alert( 5.9...
6
by: Frank Hauptlorenz | last post by:
Hello out there, I have 2 services running. The first one runs in session mode and the 2nd not. The first one should call an operation of the 2nd one asynchronously, because this is doing some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.