Results 1 to 5 of 5

Thread: Md Array

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    Md Array

    Hey all, having a mental block

    ive got an MDArray consisting of

    297 lines containing 4 dimenisions

    ServerArray.SetValue("zw", "Unknown", "Unknown", 43)


    How do i set it again ???

    Dim ServerArray as string(???) ????
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    bump
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  3. #3

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    oh bollocks i give up
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  4. #4

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    Right who ever is really good at arrays HELP ME

    i hardly use arrays well not massive ones like this

    i have nearly 300 lines of code formatted like this

    ("yt", "Unknown", "Unknown", 43)
    ("yu", "whois.ripe.net", "Verified", 43)
    ("za", "whois.frd.ac.za", "Verified", 43)
    ("zm", "Unknown", "Unknown", 43)
    ("zr", "Unknown", "Unknown", 43)
    ("zw", "Unknown", "Unknown", 43)

    reading loads of crap about arrays etc it says i have to code it like

    blah(0,0) = "yt"
    blah(0,1) = "whois.ripe.net"
    blah(0,2) = "Verified"
    blah(0,3) = "43"

    + just to put the spanner in the works i wana be able to find a value within the array i.e. the tld = "yt" then get the index of the record.

    reading on.... i see you cant search a MDArray, so comments, choices, options

    the following are out the windows

    Storing them in a database - its a com object i dont want uses to have to install db's, hash tables, not enough room for values arraylist ( one dimenisonal i think-could be wrong)

    So PRIATE and the other GODS IN here WHERE the F*c* are you....
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    You have not been making youself very clear (to me at any rate).

    What did you mean by "How do i set it again ??? "

    Then you say the array has 4 dimensions but you give an example of a two dimensioned array.

    If you want to find the index of the element containing yt where one rank in the two dimensional array reads

    blah(0,0) = "yt"
    blah(0,1) = "whois.ripe.net"
    blah(0,2) = "Verified"
    blah(0,3) = "43"

    then you need something like

    VB Code:
    1. Dim intCount as Integer
    2. For intCount = 0 to blah.GetUpperbound(0)
    3.    If blah(intCount,0)="yt" Then
    4.       MessageBox.Show("Index Number is  " & intcount)
    5.       exit for
    6.    end if
    7. Next


    (I think )
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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