Return to Snippet

Revision: 17656
at March 9, 2010 08:55 by wizard04


Updated Code
'****************************************
' Checks if an array has been initialized, even if it is a dynamic array.
' 
' Got this from http://en.wiki.mcneel.com/default.aspx/McNeel/RsEmptyArray
'****************************************

Function IsArrayDimmed(arr)
	IsArrayDimmed = False
	If IsArray(arr) Then
		On Error Resume Next
		Dim ub : ub = UBound(arr)
		If (Err.Number = 0) And (ub >= 0) Then IsArrayDimmed = True
	End If  
End Function

Revision: 17655
at January 14, 2010 12:44 by wizard04


Updated Code
'I got this from http://en.wiki.mcneel.com/default.aspx/McNeel/RsEmptyArray

Function IsArrayDimmed(arr)
	IsArrayDimmed = False
	If IsArray(arr) Then
		On Error Resume Next
		Dim ub : ub = UBound(arr)
		If (Err.Number = 0) And (ub >= 0) Then IsArrayDimmed = True
	End If  
End Function

Revision: 17654
at January 14, 2010 12:44 by wizard04


Updated Code
'I got this from http://en.wiki.mcneel.com/default.aspx/McNeel/RsEmptyArray

Function IsArrayDimmed(arr)
	IsArrayDimmed = False
	If IsArray(arr) Then
		On Error Resume Next
		Dim ub : ub = UBound(arr)
		If (Err.Number == 0) And (ub >= 0) Then IsArrayDimmed = True
	End If  
End Function

Revision: 17653
at September 11, 2009 11:48 by wizard04


Updated Code
'I got this from http://en.wiki.mcneel.com/default.aspx/McNeel/RsEmptyArray

Function IsArrayDimmed(arr)
	IsArrayDimmed = False
	If IsArray(arr) Then
		On Error Resume Next
		Dim ub : ub = UBound(arr)
		If (Err.Number = 0) And (ub >= 0) Then IsArrayDimmed = True
	End If  
End Function

Revision: 17652
at September 11, 2009 11:46 by wizard04


Initial Code
Function IsArrayDimmed(arr)
	IsArrayDimmed = False
	If IsArray(arr) Then
		On Error Resume Next
		Dim ub : ub = UBound(arr)
		If (Err.Number = 0) And (ub >= 0) Then IsArrayDimmed = True
	End If  
End Function

Initial URL
http://en.wiki.mcneel.com/default.aspx/McNeel/RsEmptyArray

Initial Description
Checks if an array has been initialized, even if it is a dynamic array.

Initial Title
Testing for Empty Arrays

Initial Tags
array, ASP

Initial Language
ASP