473,385 Members | 1,359 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,385 software developers and data experts.

Strange Problem

Hi All,

I am seeing a very strange issue with a winform I have.

There are a few statements in the code, that at one point were working just
fine.
I had compiled the code a few days ago and everything was working as desired.

Now all of a sudden I am getting errors in some places, and some statements
no longer no longer work the way they did.

For instance, the following data conversion has been working for weeks.
Nothing has changed, no DB changes, no code changes, nothing. Now it spits
out an error.
TID_FILTER_TABLE.Columns("MCC").DataType =
System.Type.GetType("System.String")

Error = Cannot change datatype of a column once it has data.

Also, I have several rowfilter statements that no longer do anything...For
instance:
If CARD_SCHEMEselection <> "%" Then
DV_TW_VIEW_TXN_ALL.RowFilter = "CARD_SCHEME LIKE '" &
CARD_SCHEMEselection & "'"
End If

At one point I switched the LIKE to = and that worked, then switched it back
to LIKE and it worked again. Then a few minutes later it no longer worked
again.

Very strange problems....Anyone seen anything like this before?

Any suggestions?

--
Kevin
Jul 21 '05 #1
1 1335
Ksedran,

Weird problem, however did you know that there is a newsgroup

microsoft.public.dotnet.languages.vb

Mybe someone there had the same problem (curiously I saw somebody now
however I have not the answer, maybe somebody else have or can you by mixing
the problems come to a solution)

Just an idea

Cor

"ksedran" <ks*****@discussions.microsoft.com>
Hi All,

I am seeing a very strange issue with a winform I have.

There are a few statements in the code, that at one point were working
just
fine.
I had compiled the code a few days ago and everything was working as
desired.

Now all of a sudden I am getting errors in some places, and some
statements
no longer no longer work the way they did.

For instance, the following data conversion has been working for weeks.
Nothing has changed, no DB changes, no code changes, nothing. Now it spits
out an error.
TID_FILTER_TABLE.Columns("MCC").DataType =
System.Type.GetType("System.String")

Error = Cannot change datatype of a column once it has data.

Also, I have several rowfilter statements that no longer do anything...For
instance:
If CARD_SCHEMEselection <> "%" Then
DV_TW_VIEW_TXN_ALL.RowFilter = "CARD_SCHEME LIKE '" &
CARD_SCHEMEselection & "'"
End If

At one point I switched the LIKE to = and that worked, then switched it
back
to LIKE and it worked again. Then a few minutes later it no longer worked
again.

Very strange problems....Anyone seen anything like this before?

Any suggestions?

--
Kevin

Jul 21 '05 #2

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

Similar topics

5
by: Rob Ristroph | last post by:
Hi, It's pretty unhelpful to post "I have a huge piece of code that crashes in strange places, what's the problem?" but that's basically my problem and I really am at my wit's end. The piece...
2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
2
by: TB | last post by:
I am seeing a very strange problem as follows... I have a loop where a fair amount of processing is going on and near the top of the loop I access a class that has only static helper functions...
1
by: Sam Kong | last post by:
Hello! Recently I had a strange problem with Visual C# 2005 beta 1. When I ran(F5 key) a program, <#if DEBUG> statement was not working. It ran as RELEASE mode. So I had to manually define...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
12
by: StephQ | last post by:
I have a class Bounds with two constructors: class Bounds { private: list<SegmentupperLinearSpline; // Upper bound. list<SegmentlowerLinearSpline; // Lower bound. ....
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
5
by: ioni | last post by:
Good day, fellows! I have a strange problem – at my site there is a flash strip, that loads data dynamically. It works fine (grabs data from the remote server and presents it), however in IE7...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.