Link to home
Start Free TrialLog in
Avatar of arthurh88
arthurh88

asked on

Is there a VB.NET equivalent to READ / DATA in basic?

I want to fill an array   Values(20,20) with 400 distinct values.  In the old days I could do this with 20 lines of code like this:
DATA 3,12,24,25,67,234 (and so forth)

And then simply "read" the data lines into my array.  
How can I fill my array with data without using an external file or database, but just using lines of code without having to do it manually (i.e. Values(1,1) = 3  Values(1,2) = 12  Values(1,3) = 24)  Manually would be so time consuming.  Is there a nice equivalent to READ/DATA commands in old basic that can quickly fill an array in .NET basic?
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial