Solved

reset string array in vb.net

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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 …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now