|
-
Nov 23rd, 2002, 11:50 AM
#1
Thread Starter
Addicted Member
OMG - No-One understands! Re-Explanation.
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?
-
Nov 23rd, 2002, 11:55 AM
#2
PowerPoster
Well
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
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 23rd, 2002, 11:56 AM
#3
Addicted Member
according to vb yes it is impossible.
First person to be able to get what song is currently playing in Winamp 3.
-
Nov 23rd, 2002, 11:59 AM
#4
Thread Starter
Addicted Member
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!
-
Nov 23rd, 2002, 12:03 PM
#5
PowerPoster
Well
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?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 23rd, 2002, 12:09 PM
#6
Thread Starter
Addicted Member
Not to criticize
but other languages do support it and their multidimentional arrays work like a database!
-
Nov 23rd, 2002, 01:42 PM
#7
PowerPoster
Well
www.microsoft.com
Complaint Department
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 23rd, 2002, 01:47 PM
#8
I wonder how many charact
I dont want to do something like that!
Tuff...
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...
-
Nov 23rd, 2002, 01:51 PM
#9
Originally posted by INF3RN0666
Not to criticize
but other languages do support it and their multidimentional arrays work like a database!
What languages would they be?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 23rd, 2002, 03:01 PM
#10
-
Nov 23rd, 2002, 08:57 PM
#11
Fanatic Member
It doesn't really make a diff, just do the 0,0 way..
-
Nov 23rd, 2002, 09:19 PM
#12
Addicted Member
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!
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...
'You keep creatures in cages and release them to fight? That's sick!'
-
Nov 23rd, 2002, 10:06 PM
#13
Fanatic Member
I tried this in VB:
Code:
<? print("Hello World"); ?>
It didn't work.
That sucks...What a stupid language.
-
Nov 23rd, 2002, 10:10 PM
#14
New Member
Agree to Valkan.
And ... in which Database can you assign a value to a column by indicating only a row number?
P.
-
Jul 27th, 2003, 01:06 PM
#15
Addicted Member
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.
First person to be able to get what song is currently playing in Winamp 3.
-
Jul 27th, 2003, 01:14 PM
#16
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|