Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to clean an array

Status
Not open for further replies.

zrazzaq

MIS
Apr 13, 2005
102
US
Hi I have an array such as ARRNYT(15)
after it has been filled and the table has been updated with the current record I need to clear the ARRNYT out, so it can start over again. How do I do that?
Thanks
Zishan
 
Looks like your array is fixed-size, so [tt]Erase[/tt] won't turn & bite. But, in the future, if you're using dynamic arrays & clear them with [tt]Erase[/tt], it also releases the allocated memory for the array itself; you'll have to do a [tt]ReDim[/tt] to reset the dimensions before you can reload it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top