VB Code:
Dim MyA(0 to 1, 0 to 2) As String MyA(0) = "hello" 'Why can't I assign a stupid string to the first level of the array? MyA(0,0) = "hello" "I dont want to do something like that! 'is what i'm trying to do impossible?
Printable View
VB Code:
Dim MyA(0 to 1, 0 to 2) As String MyA(0) = "hello" 'Why can't I assign a stupid string to the first level of the array? MyA(0,0) = "hello" "I dont want to do something like that! 'is what i'm trying to do impossible?
If the array is multi-dimensional, you msu do it the way you wish not to...
If you want a simple one dimen array, dim your array like this :
VB Code:
Dim MyA(0 to 1) As String MyA(0) = "hello
according to vb yes it is impossible.
LOL That sucks...What a stupid language. I've been programming in this thing for a year and I always thought it was possible till I tried it. Good old PHP never fails me though :P!
Not to criticize, but how do you think VB would have determined this anyway? You want an array to hold data like a grid, but only pass it the column?Quote:
What a stupid language
Not to criticize
but other languages do support it and their multidimentional arrays work like a database!
www.microsoft.com
Complaint Department
:D
Tuff...Quote:
I dont want to do something like that!
Seriously, if you have problems with clarified code... you can go complain to a wall...
To me, typing array(0,0) = 1 is about as tiring as typing array(0)=1
No difference at all to me...
What languages would they be?Quote:
Originally posted by INF3RN0666
Not to criticize
but other languages do support it and their multidimentional arrays work like a database!
Do you need to set all the line, or all the column?? Or just the first column of that line?
It doesn't really make a diff, just do the 0,0 way..
hum... correct me if i'm wrong, but I don't think you could do this in c/c++ either. Are they stupid languages too? As for PHP... isn't this a scripting language for web page using databases? Yeah... probably a whole lot better... :rolleyes:Quote:
Originally posted by INF3RN0666
LOL That sucks...What a stupid language. I've been programming in this thing for a year and I always thought it was possible till I tried it. Good old PHP never fails me though :P!
I tried this in VB:
It didn't work.Code:<? print("Hello World"); ?>
That sucks...What a stupid language.
Agree to Valkan.
And ... in which Database can you assign a value to a column by indicating only a row number?
P.
If you want it to work like this...
I suggest writing your own code.
BTW if VB did support a function like this a whole column would change.
Maer-Martian: You responded to a thread that was eight months old. I've closed it. If INF3RN0666 wants it reopened he can PM me.