Microsoft VBScript运行时错误!! [英] Microsoft VBScript Runtime Error!!

查看:91
本文介绍了Microsoft VBScript运行时错误!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助找出下面脚本的错误:

Can anyone help in figuring out what is wrong with the script below:

展开 | 选择 | Wrap | 行号

推荐答案

那么你可以确定你要向val函数发送一个字符串吗?就个人而言,我不明白你在这个程序中想要做什么但是我会说要验证两个val函数中的信息以验证它们是字符串还是在尝试使用该函数之前转换它们。使用debug.print来验证它们是否有值,然后从那里开始。
Well to kick this off are you sure you are sending a string to the val function? Personally I don''t understand what your trying to do in this procedure however I would say to verify the info in both of the val functions to verify they are strings or convert them before trying to utilize that function. Use debug.print to verify that they have a value to start with then go from there.


我必须同意Denburt。除非你以某种方式创建了可重入代码,否则我不知道你是如何耗尽堆栈空间的。所以也许你正在向 Val()函数传递一些非常奇怪的值。


如果可能,我会' d建议你在发生错误时中断代码,并直接检查所涉及的变量,而不是依赖 Debug.Print (虽然这也可能已经足够了)。至少,它将是良好的调试实践。 :)
I''d have to agree with Denburt. Unless you have somehow created reentrant code, I don''t see how you could be running out of stack space. So perhaps you are passing some sort of really weird value to the Val() function.

If possible, I''d recommend you interrupt the code at the point where the error occurs, and examine the variables involved directly, rather than relying on Debug.Print (though that will probably be good enough, too). At the very least, it will be good debugging practice. :)


感谢您的回复。也许我并没有很好地澄清自己。我以前从未写过代码。我想要做的是编辑我的网站,当我收到此错误时:

Microsoft VBScript运行时错误''800a001c''

堆栈空间:''Val''

/admin/content/pages.asp,第7行


让我粘贴有问题的文件夹,然后你可以告诉我在哪里插入东西。

我们走了:

Thanks for the replies. Perhaps I didn''t clarify myself very well. I''ve never written a code before. What I wanted to do was edit my website, when I got this error:

Microsoft VBScript runtime error ''800a001c''

Out of stack space: ''Val''

/admin/content/pages.asp, line 7

Let me paste the folder in question, then perhaps you can tell me where I have to insert something.
Here we go:

展开 | 选择 | Wrap | 行号


这篇关于Microsoft VBScript运行时错误!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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