Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Empty Array?

hi All,

I have an array in my program:

Dim Record( ) As String

I have then used the command

ReDim Preserve Record(UBound(Record) + 1) ' Keeps the old values

However i need to clear this array at a certain stage, but am stuck on how to go about clearing its content? :confused:

Any suggestions would be appreciated.
[383 byte] By [mp_direct] at [2007-11-11 7:14:41]
# 1 Re: Empty Array?
Solved - ReDim Record(0)
mp_direct at 2007-11-11 17:27:15 >
# 2 Re: Empty Array?
You can also use the Erase ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vastmerasex.asp) statement.
pclement at 2007-11-11 17:28:14 >