Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

reset string array in vb.net

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
How to use odbc in vb to connect to ms sql 14 62
Obtain cell value using column ID in DataGrid using VB.NET 2 25
Optimize the query 5 43
Passing data between Forms 3 20
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

838 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