Solved

reset string array in vb.net

Posted on 2009-04-06
2
679 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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