[Year 12 SofDev] Arrays of unknown length.

Gordon Poultney gordonp at horsham-college.vic.edu.au
Fri Jun 22 15:19:39 EST 2007


looks like a classic place for a linked list!

Isn't there a version of this in VB - an arraylist ?

Cheers        Gordon



> Hi all
>
> I am trying to work out how a example of using a 1-d array of unknown
> length to demo to the students. I am using VB .NET
>
>
>
> Essentially I want to input an unknown number of integers using an
> inputbox, enter a piece of dummy data to end the input, then display
> these back to the students.
>
>
>
> I am trying to use eg. Dim Score() as integer and then later use ReDim
> Preserve(count) but can't get the code right.
>
>
>
> Any help would be gratefully received.
>
>
>
> ------------------------------------------------------------------------
> ------------
>
>
>
> Bruce Riley
>
> ICT Manager
>
> Kew High School
>
> 1393 Burke Road
>
> Kew East, VIC. 3102
>
> Australia
>
>
>
> Phone: 61 3 9859 8652
>
> Fax:     61 3 9819 7880
>
>
>
>


-- 
Gordon Poultney



More information about the sofdev mailing list