473,770 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Explain this (if you dare)

Let me just start by saying I'm a very accomplished ASP programmer. I need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and I
tracked it down to a single condition statement. Here it is (very complex
code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the values
and they're 100% accurate. I use singles to account for decimals. I began
trying different combinations, using CDbl and other conversions. Nothing
worked. Then (and this is the best part), I tried: If (12 = 12) Then...and
IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not
validate, but it just started happening out of the blue. I've since changed
my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.
Jul 26 '05 #1
19 1452
Did you actually put literally "if 12 = 12", or did you set the values of
your two variables both to 12?

I would try puting cSng around tuition as well, just to be absolutely sure
it's not being sneaky on you there...
If (CSng(ccTuition ) <> CSng(tuition)) Then

If that fails, reboot. :)

Beverley
"Jordan" <jf*****@learn. colostate.edu> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl...
Let me just start by saying I'm a very accomplished ASP programmer. I need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and I
tracked it down to a single condition statement. Here it is (very complex
code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the values and they're 100% accurate. I use singles to account for decimals. I began
trying different combinations, using CDbl and other conversions. Nothing
worked. Then (and this is the best part), I tried: If (12 = 12) Then...and IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not
validate, but it just started happening out of the blue. I've since changed my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.

Jul 26 '05 #2
> Then (and this is the best part), I tried: If (12 = 12) Then...and > IT
FAILED!!!!


Did you copy and paste these values from another source?

If so, it is possible that there are non-printing characters that VBScript
can see and that you cannot.

If not, there are ghosts in your machine. I cannot find a way to make ASP
evaluate (12 = 12) to false.
Jul 26 '05 #3
If CSng(ccTuition) <> CSng(tution) Then

What does that do? What does "failed" mean? Do you get an error?

Ray at work

"Jordan" <jf*****@learn. colostate.edu> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl...
Let me just start by saying I'm a very accomplished ASP programmer. I need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and I
tracked it down to a single condition statement. Here it is (very complex
code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the values and they're 100% accurate. I use singles to account for decimals. I began
trying different combinations, using CDbl and other conversions. Nothing
worked. Then (and this is the best part), I tried: If (12 = 12) Then...and IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not
validate, but it just started happening out of the blue. I've since changed my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.

Jul 26 '05 #4
Both actually. And I did try the CSng around both variables. All failed.

I might have to reboot, for lack of any else to do.

Thanks, j
"Beverley" <al**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Did you actually put literally "if 12 = 12", or did you set the values of
your two variables both to 12?

I would try puting cSng around tuition as well, just to be absolutely sure
it's not being sneaky on you there...
If (CSng(ccTuition ) <> CSng(tuition)) Then

If that fails, reboot. :)

Beverley
"Jordan" <jf*****@learn. colostate.edu> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl...
Let me just start by saying I'm a very accomplished ASP programmer. I
need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and
I
tracked it down to a single condition statement. Here it is (very complex
code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the

values
and they're 100% accurate. I use singles to account for decimals. I began
trying different combinations, using CDbl and other conversions. Nothing
worked. Then (and this is the best part), I tried: If (12 = 12)

Then...and
IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not
validate, but it just started happening out of the blue. I've since

changed
my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.


Jul 26 '05 #5
No I didn't, and it shouldn't be non-printing characters. I deleted,
re-typed, re-typed from scratch, etc.

Honestly, I tried everything (that I can think of at least) to understand
what could possibly be wrong.

Thanks, j

"Aaron Bertrand [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Then (and this is the best part), I tried: If (12 = 12) Then...and > IT
FAILED!!!!


Did you copy and paste these values from another source?

If so, it is possible that there are non-printing characters that VBScript
can see and that you cannot.

If not, there are ghosts in your machine. I cannot find a way to make ASP
evaluate (12 = 12) to false.

Jul 26 '05 #6
Fails. Fails means it evaluates to false, when it should be true. No error,
becuase it does compile and evaulate to a condition, just the wrong
condition!

Thanks, j
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
If CSng(ccTuition) <> CSng(tution) Then

What does that do? What does "failed" mean? Do you get an error?

Ray at work

"Jordan" <jf*****@learn. colostate.edu> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl...
Let me just start by saying I'm a very accomplished ASP programmer. I
need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and
I
tracked it down to a single condition statement. Here it is (very complex
code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the

values
and they're 100% accurate. I use singles to account for decimals. I began
trying different combinations, using CDbl and other conversions. Nothing
worked. Then (and this is the best part), I tried: If (12 = 12)

Then...and
IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not
validate, but it just started happening out of the blue. I've since

changed
my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.


Jul 26 '05 #7
Re-install windows!

Jul 26 '05 #8
Alright, then I guess the values ARE equal since "if <>" evaluates to false.

If 1 <> 1 Then
''true condition
Else
''False condition - this is what will be executed
End If

Ray at work

"Jordan" <jf*****@learn. colostate.edu> wrote in message
news:Op******** ******@TK2MSFTN GP09.phx.gbl...
Fails. Fails means it evaluates to false, when it should be true. No error, becuase it does compile and evaulate to a condition, just the wrong
condition!

Thanks, j
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
If CSng(ccTuition) <> CSng(tution) Then

What does that do? What does "failed" mean? Do you get an error?

Ray at work

"Jordan" <jf*****@learn. colostate.edu> wrote in message
news:uE******** ******@TK2MSFTN GP09.phx.gbl...
Let me just start by saying I'm a very accomplished ASP programmer. I
need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and I
tracked it down to a single condition statement. Here it is (very complex code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the

values
and they're 100% accurate. I use singles to account for decimals. I began trying different combinations, using CDbl and other conversions. Nothing worked. Then (and this is the best part), I tried: If (12 = 12)

Then...and
IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not validate, but it just started happening out of the blue. I've since

changed
my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.



Jul 26 '05 #9
!TG
Jordan wrote:
Let me just start by saying I'm a very accomplished ASP programmer. I need
to rely on that becuase this error boggles the mind.

Just today, I had to troubleshoot an error in one of my applications and I
tracked it down to a single condition statement. Here it is (very complex
code to follow):

<code>

If (CSng(ccTuition ) <> tuition) Then

</code>

Again, just today, this line started to disfunction. I validated the values
and they're 100% accurate. I use singles to account for decimals. I began
trying different combinations, using CDbl and other conversions. Nothing
worked. Then (and this is the best part), I tried: If (12 = 12) Then...and
IT FAILED!!!!

I can't even begin to fathom this issue, not only does the condition not
validate, but it just started happening out of the blue. I've since changed
my statement to a string comparison becuase nothing else was working.

I'm going to lunch, boggled as ever.

Just a quick question.. If ccTuition is anything but tuition, that is
when the code should run?
Jul 26 '05 #10

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

Similar topics

0
1699
by: Yeongja_Choi | last post by:
How Dare Could America Industrial Property Office Be In Conspiracy With Jungang International Patent Office To Make An Extravagant International Crime ? Currently a Korean party now holds the American patent 4919933, the Taiwanese patent 37414, the Japanese patent 2733523 and a Korean patent 044435 through The Korean Jungang International Patent Law Office(Address : 5th Floor, Jae Insurance Bld, #80, Susong-Dong, Jongro-Gu, Seoul, the...
10
2169
by: Greg Stark | last post by:
This query is odd, it seems to be taking over a second according to my log_duration logs and according to psql's \timing numbers. However explain analyze says it's running in about a third of a second. What would cause this? Is it some kind of postgresql.conf configuration failure? I have the same query running fine on a different machine. QUERY PLAN...
14
20391
by: Ina Schmitz | last post by:
Hello all, I don't succeed in displaying the explain plan. I use IBM DB2 Universal Database 8.2. I tried to do the example given in the online help for "Visual Explain". The tables EXPLAIN_STATEMENT and EXPLAIN_INSTANCE exist. With VESAMPL.DDL, I loaded the predefined execution plans. In the next step, I'ld like to display the loaded access plans. So, I right clicked on "Show Explained Statements History" and got the result:
10
2158
by: Jeff Boes | last post by:
I'm hoping there's someone here with experience in building the Visual Explain tool from Red Hat. I downloaded it and the J2 SDK, but when I attempt to follow the build instructions, I get messages like: error: Type `JTableHeader' not found in the declaration of the local variable `header'. JTableHeader header = null; To me, this indicates that the SDK isn't installed (properly). But I admit I'm pretty much a Java...
5
3634
by: Jon Lapham | last post by:
I have been using the EXPLAIN ANALYZE command to debug some performance bottlenecks in my database. In doing so, I have found an oddity (to me anyway). The "19ms" total runtime reported below actually takes 25 seconds on my computer (no other CPU intensive processes running). Is this normal for EXPLAIN ANALYZE to report a total runtime so vastly different from wall clock time? During the "explain ANALYZE delete from msgid;" the CPU is...
4
12729
by: marklawford | last post by:
Not having earned my DBA badge from the scouts just yet I'm a little lost with an error I'm getting. We've just upgraded our development database from 7.2 to 8.2 as the first step in upgrading our wider environment. Of course, development doesn't stop so I'm running some explain plans over some new views. The problem is, when the view is accessed as part of the explain plan script, the following error is returned.
22
1747
by: graham.parsons | last post by:
Guys, Hopefully someone can help. We have a monitoring program that has threads which start and stop monitoring at various times. There are two tables: THREADLIFECYCLE unique_id
118
6743
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
5
8108
by: kabotnet | last post by:
Hi, I'm new in db2, I'm trying to execute EXPLAIN command on some queries but i have error like: And message similar to: Token EXPLAIN is not valid, valid tokens ( END GET SET CALL DROP FREE HOLD LOCK OPEN WITH ALTER. I've created tables explain_* How can I start to find solution? Is it possible that my db2 doesn't support explain?
1
3582
by: w.l.fischer | last post by:
Hi, the following sequence: set current explain mode yes; set current explain snapshot yes; update ...; set current explain mode no;
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.