User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 428,638 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,075 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 1189 | Replies: 1
Reply
Join Date: Jan 2008
Posts: 7
Reputation: mohanvamsi_18 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mohanvamsi_18 mohanvamsi_18 is offline Offline
Newbie Poster

Help how can i initialize 2 dimentiona integer array in visual basic 6.0

  #1  
Jan 8th, 2008
Please tell me ..
how can i Initialise 2 dimentional integer array in visual basic 6.0 .....

if i am giving like this .. it returns error .. at (,)

Dim intScores(,) As Integer = {{75, 90}, {9, 25}, {23, 56}, {6, 12}}
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2002
Location: West Virginia
Posts: 388
Reputation: waynespangler is on a distinguished road 
Rep Power: 6
Solved Threads: 40
waynespangler waynespangler is offline Offline
Posting Whiz

Re: how can i initialize 2 dimentiona integer array in visual basic 6.0

  #2  
Jan 9th, 2008
You can't do that in vb 6. You will have to do it like this
Dim intScores(4,2) As Integer
intScores(0,0) = 75
intScores(0,1) = 90
etc.
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 1:03 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC