• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Syntax question

If I have a:

Dim myBytes(512) as Byte

how can i zero out the array?  I tried .clear but that doesn't seem to be working for me.
1 Solution
'To clear values from each index
Dim bt(512) As Byte
Array.Clear(bt, 0, bt.Length)

'to clear the bounds
Redim bt(0) as Byte

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now