Click here to Skip to main content
15,891,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Error "No data received from phone after 4500 ms" Pin
Manas Bhardwaj3-Sep-08 1:34
professionalManas Bhardwaj3-Sep-08 1:34 
AnswerRe: Error "No data received from phone after 4500 ms" Pin
jzonthemtn3-Sep-08 3:31
jzonthemtn3-Sep-08 3:31 
Questiondate time picker control problem in vb.net Pin
chandrubngit2-Sep-08 22:56
chandrubngit2-Sep-08 22:56 
AnswerRe: date time picker control problem in vb.net Pin
Smithers-Jones2-Sep-08 23:04
Smithers-Jones2-Sep-08 23:04 
AnswerRe: date time picker control problem in vb.net Pin
jzonthemtn3-Sep-08 3:29
jzonthemtn3-Sep-08 3:29 
GeneralRe: date time picker control problem in vb.net Pin
chandrubngit3-Sep-08 9:11
chandrubngit3-Sep-08 9:11 
QuestionArray inside array Pin
tatchung2-Sep-08 22:35
tatchung2-Sep-08 22:35 
AnswerRe: Array inside array Pin
Guffa3-Sep-08 1:27
Guffa3-Sep-08 1:27 
tatchung wrote:
So I was thinking it would look something like array1(0(array2(0)).


Not quite. An array is an object, so it doesn't have a name in itself. What you name is the reference variable that holds a reference to the array.

So, you don't name the arrays that you store in the array. You only have a name for the variable referencing the outer array:
Dim array1(3)() As String
array1(0) = new String() { "Receive", "Sent", "Sent", "DLR" }
array1(1) = new String() { "Receive", "Sent", "Sent" }
array1(2) = new String() { "Receive", "Sent", "Sent", "Sent" }

You can create a string array to store in the array. You would have a reference variable for that array too, but you still only store the reference to the string array in the outer array:
Dim x(1) As String
x(0) = "Receive"
x(1) = "Sent"
array1(3) = x 'Puts the reference in the outer array

To use the arrays you only use the single variable name that you have. The value of the expression array1(0) is a string array, so you just stack another index after that expression to access a string:
array1(0)(1)


Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Array inside array Pin
tatchung3-Sep-08 6:20
tatchung3-Sep-08 6:20 
GeneralRe: Array inside array Pin
Guffa3-Sep-08 8:32
Guffa3-Sep-08 8:32 
GeneralRe: Array inside array Pin
tatchung3-Sep-08 21:31
tatchung3-Sep-08 21:31 
QuestionHow to change wait cursor picture Pin
thesum2-Sep-08 20:52
thesum2-Sep-08 20:52 
AnswerRe: How to change wait cursor picture Pin
Smithers-Jones2-Sep-08 22:58
Smithers-Jones2-Sep-08 22:58 
QuestionReverse string Pin
rprateek2-Sep-08 18:20
rprateek2-Sep-08 18:20 
AnswerRe: Reverse string Pin
Dave Kreskowiak2-Sep-08 18:37
mveDave Kreskowiak2-Sep-08 18:37 
GeneralRe: Reverse string Pin
rprateek2-Sep-08 18:52
rprateek2-Sep-08 18:52 
AnswerRe: Reverse string Pin
Paul Conrad2-Sep-08 18:54
professionalPaul Conrad2-Sep-08 18:54 
GeneralRe: Reverse string Pin
rprateek2-Sep-08 19:00
rprateek2-Sep-08 19:00 
GeneralRe: Reverse string Pin
Paul Conrad2-Sep-08 19:03
professionalPaul Conrad2-Sep-08 19:03 
GeneralRe: Reverse string Pin
rprateek2-Sep-08 19:06
rprateek2-Sep-08 19:06 
AnswerRe: Reverse string Pin
Thomas Stockwell4-Sep-08 8:26
professionalThomas Stockwell4-Sep-08 8:26 
Questionvb.Net and SMO error Pin
Rafone2-Sep-08 8:23
Rafone2-Sep-08 8:23 
AnswerRe: vb.Net and SMO error Pin
Bassam Saoud2-Sep-08 10:24
Bassam Saoud2-Sep-08 10:24 
AnswerRe: vb.Net and SMO error Pin
Dave Kreskowiak2-Sep-08 10:25
mveDave Kreskowiak2-Sep-08 10:25 
GeneralRe: vb.Net and SMO error Pin
Rafone2-Sep-08 10:37
Rafone2-Sep-08 10:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.