473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to initialize the two dimensional array in v.b 6.0

hi!
can u say how to initialize the two dimensional array in v.b 6.0?
Thanks in advance
Regards:
raghunadhs
Jun 24 '07 #1
4 6799
Killer42
8,435 Expert 8TB
can u say how to initialize the two dimensional array in v.b 6.0?
Private ArrayName(1 To 10, 1 to 10)
Jun 24 '07 #2
pureenhanoi
175 100+
Private ArrayName(1 To 10, 1 to 10)
Private ArrayName(1 To 10,1 To 10) As DataType
Killer42 forgot the datatype of array.
Array in VB can begin with 1or 0 or any integer number. If u need, pass this number as the first element of array.
In VB, u cannot init array-values like C or some other language. There is one way, u declare the array and set the value for each element
ArrayName(1,1) = 100
Array(1,2) = 201
...
Jun 25 '07 #3
Killer42
8,435 Expert 8TB
...Killer42 forgot the datatype of array.
Well, technically you don't have to specify the data type. But I would always recommend doing so, rather than relying on defaults. (I always do when coding, just didn't bother in my response here.)

...In VB, u cannot init array-values like C or some other language.
Just as a matter of interest, I believe this has changed in VB.Net. Which, if you haven't seen it, looks a lot like Java. (Or possibly C, I forget).
Jun 25 '07 #4
Thanks, for reply. it helped me very much...
Jun 25 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: shama.bell | last post by:
Hello, Can I do something like this? table = {} table = 0x0 Where 32 specifies rows and 16 specifies columns and i am trying to initialize it to zero
0
by: Tony Johansson | last post by:
Hello Experts!! I know that you can initialize a two-dimensional array of integer in this way int number = { {1,6,78}, {7,2,23} } Here we have declared a two dimensional array with 2 rows, each...
60
by: Peter Olcott | last post by:
I need to know how to get the solution mentioned below to work. The solution is from gbayles Jan 29 2001, 12:50 pm, link is provided below: >...
2
by: deko | last post by:
I trying to create a jagged array of two arrays, with the second array being an array of two-dimensional arrays. A graphical representation might look like this: x y y y x y x y y x ...
22
by: spam.noam | last post by:
Hello, I discovered that I needed a small change to the Python grammar. I would like to hear what you think about it. In two lines: Currently, the expression "x" is a syntax error. I suggest...
8
by: per9000 | last post by:
Hi all, I have a two-dimensional array of data, f.x int's. We can imagine that the array is "really large". Now I want the data in it and store this in a one-dimensional array. The obvious...
272
by: Peter Olcott | last post by:
http://groups.google.com/group/comp.lang.c++/msg/a9092f0f6c9bf13a I think that the operator() member function does not work correctly, does anyone else know how to make a template for making two...
5
by: nelly0 | last post by:
developing a program that will manipulate noise levels (measured in decibels) that is collected by car manufacturers. These noise levels are produced at seven different speeds by a maximum of six...
2
by: shanthisagar | last post by:
can anyone tell me how to initialize a three dimensional array? take integer datatype for example please show me the code or syntax
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.