Results 1 to 16 of 16

Thread: OMG - No-One understands! Re-Explanation.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229

    OMG - No-One understands! Re-Explanation.

    VB Code:
    1. Dim MyA(0 to 1, 0 to 2) As String
    2.  
    3. MyA(0) = "hello"  'Why can't I assign a stupid string to the first level of the array?
    4. MyA(0,0) = "hello"   "I dont want to do something like that!
    5.  
    6. 'is what i'm trying to do impossible?

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    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:
    1. Dim MyA(0 to 1) As String
    2.  
    3. MyA(0) = "hello
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3
    Addicted Member Mars-Martian's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    185
    according to vb yes it is impossible.
    First person to be able to get what song is currently playing in Winamp 3.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    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!

  5. #5
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    What a stupid language
    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....

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    Not to criticize

    but other languages do support it and their multidimentional arrays work like a database!

  7. #7
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    www.microsoft.com

    Complaint Department

    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  8. #8
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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...

  9. #9
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  10. #10
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Do you need to set all the line, or all the column?? Or just the first column of that line?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  11. #11
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    It doesn't really make a diff, just do the 0,0 way..
    asdf

  12. #12
    Addicted Member
    Join Date
    Oct 2002
    Location
    Somewhere out in space
    Posts
    151
    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!'

  13. #13
    Fanatic Member mikeycorn's Avatar
    Join Date
    Jun 2000
    Location
    Aliso Viejo, CA, USA
    Posts
    526
    I tried this in VB:

    Code:
    <? print("Hello World"); ?>
    It didn't work.

    That sucks...What a stupid language.
    ~ mikeycorn

    With over 45,000 Questions in the User Submitted Database, it's the Most Popular Quiz Creation Software on the Net:

    PEST - The Personal Exam Self-Tester

  14. #14
    New Member
    Join Date
    Nov 2002
    Posts
    2
    Agree to Valkan.

    And ... in which Database can you assign a value to a column by indicating only a row number?

    P.

  15. #15
    Addicted Member Mars-Martian's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    185
    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.

  16. #16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width