无效的过程调用或参数剩余 [英] invalid procedure call or argument left

查看:396
本文介绍了无效的过程调用或参数剩余的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下错误:

Microsoft VBScript runtime error '800a0005' 
Invalid procedure call or argument: 'left' 
/scheduler/App.asp, line 16 

该行是:

point1 = left(point0,i-1)

此代码在另一台服务器上可以正常工作,但是现在在另一台服务器上显示此错误.我猜想它与系统或IIS设置有关,或者可能与其他无关,但与代码无关(因为它在另一台服务器上可以正常工作).

This code works perfectly in another server, but now on another server it is showing this error. I can guess it has to do with system or IIS settings or may be something else but its nothing with code (as its works fine in another server).

推荐答案

如果 i 等于零,则将使用 -1调用 Left()作为 length 参数.这将导致无效的过程调用或参数错误.验证 i> = 0 .

If i is equal to zero then this will call Left() with -1 as the length parameter. This will result in an Invalid procedure call or argument error. Verify that i >= 0.

这篇关于无效的过程调用或参数剩余的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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