Solved

Syntax question

Posted on 2004-08-30
1
185 Views
Last Modified: 2010-04-23
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.
0
Comment
Question by:stealth188
1 Comment
 
LVL 4

Accepted Solution

by:
gdexter earned 50 total points
ID: 11934776
   
 
'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






0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb.net help 4 34
VB.NET 2008 - SQL Timeout 9 34
How do sunrise and sunset times change with altitude 14 38
MYSQL responding very slow 3 26
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question