| 5 August 2002 |
slUBound() |
| Author | ScriptLogic Corporation |
| Action | Returns the upper boundary of an array, or -1 if the array has only one element and the element is a blank string. |
| Syntax | slUBound ($array) |
| Parameters | $array (Required / Array) The array that would would like the modified ubound of. |
| Remarks | This UDF was created because there is no way of knowing whether an array that was dynamically created & resized, contains no elements or a single element.
Necessary because there is no way to know if an array has a single element or no elements. |
| Returns | Returns the upper boundary or the array, just like the native UBound() function, however, if the array has only one element and the lone element is a zero-byte string, this UDF returns a -1. |
| Dependencies | None. |
| Examples | |
| Source | |