Delete VBA array content

There is an easy way to delete the contents of an array. Is possible by the command Erase

 

Option Explicit

Sub FeldBeispiel()

Dim fFeld(5, 5) As Integer

fFeld(3, 3) = 3

MsgBox fFeld(3, 3)

Erase fFeld

MsgBox fFeld(3, 3)

End Sub

Analysis Office - The Comprehensive Guide
Analysis Office - The Comprehensive Guide is a pdf book about SAP BusinessObjects Analysis Office. It is based on Analysis Office 2.3 and contains 227 Pages.
29,99 €
Analysis Office - The Comprehensive Guide 2nd edit
Analysis Office - The Comprehensive Guide is a pdf book about SAP BusinessObjects Analysis Office. It is based on Analysis Office 2.4 and contains 243 pages.
39,99 €

Write a comment

Comments: 0