解释一下(如果你敢) [英] Explain this (if you dare)

查看:66
本文介绍了解释一下(如果你敢)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先我要说的是,我是一位非常有成就的ASP程序员。我需要

依靠这个因为这个错误令人难以置信。


就在今天,我不得不解决我的一个应用程序中的错误而且我

将其追溯到单个条件语句。这是(非常复杂的

代码):


< code>


If(CSng (ccTuition)<>学费)然后


< / code>


再一次,就在今天,这条线路开始出现故障。我验证了值

并且它们是100%准确的。我使用单打来计算小数。我开始尝试不同的组合,使用CDbl和其他转换。

。什么都没有

工作。然后(这是最好的部分),我试过:如果(12 = 12)然后......和

IT失败!!!!


我甚至无法理解这个问题,不仅仅是条件没有验证,而且它刚刚开始发生。我已经改变了

我的陈述到一个字符串比较,因为没有别的东西在工作。


我要去吃午餐,一如既往地感到困惑。

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.

推荐答案

你真的按字面意思如果12 = 12,或者你设置了值

你的两个变量都是12?

我会尝试将cSng放在学费周围,只是为了绝对确定

它不会偷偷摸摸你那里......

如果(CSng(ccTuition)<> CSng(学费))那么


如果失败,请重启。 :)


Beverley

" Jordan" < JF ***** @ learn.colostate.edu>在消息中写道

新闻:uE ************** @ TK2MSFTNGP09.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**************@TK2MSFTNGP09.phx.gbl...
让我刚开始说我是一个非常有成就的ASP程序员。我需要依靠这个因为这个错误令人难以置信。

就在今天,我不得不对我的一个应用程序中的错误进行故障排除,并且我将其跟踪到了单一条件声明。这是(非常复杂的代码):

< code>

如果(CSng(ccTuition)<>学费)那么

< / code>

再次,就在今天,这条线开始出现故障。我验证了
值,它们是100%准确的。我使用单打来计算小数。我开始尝试使用CDbl和其他转换的不同组合。什么都没有工作。然后(这是最好的部分),我试过:如果(12 = 12)
然后......而且它失败!!!!

我甚至无法开始理解这个问题,不仅条件没有验证,而且它刚刚开始发生。我已经将
改为我的陈述改为字符串比较,因为没有其他工作正在发挥作用。

我要去吃午餐,一如既往地感到困惑。
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.



>然后(这是最好的部分),我试过:If(12 = 12)然后......和> IT
> Then (and this is the best part), I tried: If (12 = 12) Then...and > IT
FAILED !!!!
FAILED!!!!




您是否从其他来源复制并粘贴了这些值?


如果是这样的话,可能会有VBScript

可以看到的非打印字符,而你可以看不到。


如果没有,则有鬼机器人。我无法找到一种方法使ASP

评估(12 = 12)为假。



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.


如果CSng(ccTuition)<> CSng(tution)然后


那是做什么的?什么是失败意思?你有错误吗?


雷在工作


" Jordan" < JF ***** @ learn.colostate.edu>在消息中写道

新闻:uE ************** @ TK2MSFTNGP09.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**************@TK2MSFTNGP09.phx.gbl...
让我刚开始说我是一个非常有成就的ASP程序员。我需要依靠这个因为这个错误令人难以置信。

就在今天,我不得不对我的一个应用程序中的错误进行故障排除,并且我将其跟踪到了单一条件声明。这是(非常复杂的代码):

< code>

如果(CSng(ccTuition)<>学费)那么

< / code>

再次,就在今天,这条线开始出现故障。我验证了
值,它们是100%准确的。我使用单打来计算小数。我开始尝试使用CDbl和其他转换的不同组合。什么都没有工作。然后(这是最好的部分),我试过:如果(12 = 12)
然后......而且它失败!!!!

我甚至无法开始理解这个问题,不仅条件没有验证,而且它刚刚开始发生。我已经将
改为我的陈述改为字符串比较,因为没有其他工作正在发挥作用。

我要去吃午餐,一如既往地感到困惑。
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.



这篇关于解释一下(如果你敢)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆