2d array in vb 6

2d array in vb 6

Page 1 of 1

0 Replies - 1498 Views - Last Post: 24 October 2010 - 01:22 AM Rate Topic: -----

#1 rohitkuk  Icon User is offline

  • New D.I.C Head

Reputation: -3
  • View blog
  • Posts: 9
  • Joined: 30-December 09

2d array in vb 6

Posted 24 October 2010 - 01:22 AM

how to enter and add the elements of 2d array with for loop in vb 6
(like city and its temperature)
dim city(1,1)

for i=0 to 1
for j=0 to 1
list1.additem city(i,0)& city(j,0)
next
next
i enter
karnal 35
kurukshetra 32
shows result
karnal 35
karnal 32
kurukshetra 35
kurukshetra 32
and also how enter the values with for loop instead of
city(0,0)=karnal
city(0,1)=35
etc.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1