Re: Unlimited Array in Visual Basic 8
- From: "Bruce W. Darby" <kracorat@xxxxxxxxxxxxx>
- Date: Sun, 25 Feb 2007 17:09:07 -0700
Joe,
I'm a very fresh beginner to VB.Net, so hopefully I won't screw this up, but
what you need to do is declare the array as you have in your example and add
a counter to loop through each value and assign it to the count value. In
psuedo-code it would look something like...
Declare your counter variable
Declare your array
For Each element in the input data
Assign the values to the array elements (Table(counter))
'Do other processing if necessary'
Increment the counter by 1 (counter += 1)
Next element
Of course, if you provided information on exactly how you are getting the
information to place in the array, others more knowledgeable than I would be
able to provide you with some more concrete information.
Bruce
"Joe" <joe1977@xxxxxxx> wrote in message
news:1172446541.137152.168540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi. simple question: how can one declare Array (or table) with unknown
number of elements, and then assign values to it, example:
Dim TableStrings() as String
TableStrings(0) = "first value"
TableStrings(1) = "second"
TableStrings(2) = "tird" .... etc
?
.
- References:
- Unlimited Array in Visual Basic 8
- From: Joe
- Unlimited Array in Visual Basic 8
- Prev by Date: Re: Unlimited Array in Visual Basic 8
- Next by Date: Re: Regex: How to remove all non-printable characters - including nulls
- Previous by thread: Re: Unlimited Array in Visual Basic 8
- Next by thread: Re: Determine support for ClearType
- Index(es):
Relevant Pages
|