Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Assigning value to array within array
Old 01-03-2005, 08:46 AM Assigning value to array within array
eyedam's Avatar
Average Talker

Posts: 27
Location: Latvia
Trades: 0
Hi!

I wanted to assign value (in the code of my Visual Basic program) to a variable whose type is array within array.

I have quite a lot of elements there, so it's not very easy to do it like this:
Code:
arrVar(0,0) = 2
arrVar(0,1) = 0
arrVar(0,2) = 1
..
arrVar(0,10) = 0
arrVar(1,0) = 3
arrVar(1,1) = 1
arrVar(1,2) = 0
..
arrVar(7,9) = 8
arrVar(7,10) = 2
I wanted to do it with one assignment operator instead. I tried this, but it didn't work:
Code:
arrVar = Array((2, 0, 1, .., 0), (3, 1, 0, ..), .., (.., 8, 2))
It says a closing bracked is required right after the first digit (2).

So, what is the correct way to do it, can anyone tell, please?

Thanks!
Janis
__________________
The signature chooses the wizard, not the wizard chooses the signature...
eyedam is offline
Reply With Quote
View Public Profile Visit eyedam's homepage!
 
 
Register now for full access!
Reply     « Reply to Assigning value to array within array
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07626 seconds with 12 queries