Solved

reset string array in vb.net

Posted on 2009-04-06
2
665 Views
Last Modified: 2012-05-06
I am initializing a string array like this:

Dim fields() As String = {"action_type text (50)", "action_description text (50)", "reset_button bit", "adjust_button bit"}

and then using it for some action, then setting it to Nothing.

But when I try to refill it with:

fields={"count integer", "cycle_time integer", "count_date date"}

the designer tells me that an Expression is expected.

How do I refill this array without having to define a new one?
0
Comment
Question by:ddepuemd
2 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 250 total points
ID: 24075942
You need to do it like this....

    fields = New String() {"count integer", "cycle_time integer", "count_date date"}

Wayne
0
 

Author Closing Comment

by:ddepuemd
ID: 31566957
THANKS!!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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 …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

832 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