What is the point/use of LBound in VBScript?

2020-04-05 12:15发布

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.

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)?

1条回答
聊天终结者
2楼-- · 2020-04-05 12:38

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

查看更多
登录 后发表回答