VBScript 中 LBound 的意义/用途是什么? [英] What is the point/use of LBound in VBScript?
本文介绍了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 to 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屋!
查看全文