LBound ASP Array Function

LBound ASP Array Function
LBound returns the lowest member of an array in ASP. While ubound is quite useful, and tells you how full your array is, lbound is not nearly as useful.

That's because most arrays start at spot 0, and fill up from there. You can pretty much always start your array processing at spot 0 and go up through however array members you are using.

If you have an array

Letters()

That has as its members

Letters(0) = "A"
...
Letters(25) = "Z"

and for some reson you didn't know what the bottom member of this array was, you could use

BottomMember = lbound(letters)

This would set BottomMember equal to zero.

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.




RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.