VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



How do you destroy your data array ?

by Ekapop Tec. (2 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 7th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

How do you destroy your data array ?

API Declarations


'This example uses the Erase statement to reinitialize the elements of fixed-'size arrays and deallocate dynamic-array storage space.
' If you've any suggestion or your thinking about this coding, please e-mail to me, thank you.
' Note: This code from the MSDN document
'
' Declare array variables.
Dim NumArray(10) As Integer ' Integer array.
Dim StrVarArray(10) As String ' Variable-string array.
Dim StrFixArray(10) As String * 10 ' Fixed-string array.
Dim VarArray(10) As Variant ' Variant array.
Dim DynamicArray() As Integer ' Dynamic array.
ReDim DynamicArray(10) ' Allocate storage space.



Rate How do you destroy your data array ?



Erase StrVarArray   ' Each element set to zero-length 
   ' string ("").   
Erase StrFixArray   ' Each element set to 0.
Erase VarArray      ' Each element set to Empty.
Erase DynamicArray  ' Free memory used by array.


Download this snippet    Add to My Saved Code

How do you destroy your data array ? Comments

No comments have been posted about How do you destroy your data array ?. Why not be the first to post a comment about How do you destroy your data array ?.

Post your comment

Subject:
Message:
0/1000 characters