在VBScript中LBound的意义/用途是什么? [英] What is the point/use of LBound in VBScript?

查看:217
本文介绍了在VBScript中LBound的意义/用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,无法在VBScript中创建基于1的数组(或任何不基于0的数组),但是它具有LBound函数,因此应始终返回0.

As far as I can establish there is no way to create a 1-based array (or any none 0 based array) in VBScript but it has a LBound function which should therefore always return 0.

那么这是从VB退回的吗(您可以使用"arrayName(1到10)"),还是有一种方法可以使LBound在VBScript(经典ASP)中产生非0的结果? >

So is this some kind of throw back from VB (as you can use "arrayName(1 to 10)") or is there a way that LBound could product a result other than 0 in VBScript (Classic ASP)?

推荐答案

LBound()是VBScript的一部分,因为您可以通过COM从其他地方获取非基于零的数组.

LBound() is part of VBScript because you could get a non-zero-based array from somewhere else via COM.

这篇关于在VBScript中LBound的意义/用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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