VB Quicktakes - Is Dimensioned

This function can be used to check to see that an array has been dimensioned. Use this function to avoid errors when checking the bounds of an array.


Option Explicit

Public Function IsDimed(xArray As Variant) As Boolean on error goto exitFunc IsDimed = isnumeric(ubound(xarray)) exitFunc: End Function
About this page: