Announcement

Collapse
No announcement yet.

VB 2005 help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by Ewan View Post
    This is setting up the array, not finding the values within.

    What you have done, is set an array with 1 long string "Billy123, winter4, autumn69, spring9669"

    The way I said there, sets up an array with 5 values, 1 for each of the logins.

    The For loop then takes the input, and checks it against each of these logins in turn.
    o...
    4:BigKing> xD
    4:Best> i'm leaving chat
    4:BigKing> what did i do???
    4:Best> told you repeatedly you cannot use that emoji anymore
    4:BigKing> ???? why though
    4:Best> you're 6'4 and black...you can't use emojis like that
    4:BigKing> xD

    Comment


    • #17
      Originally posted by Nockm View Post
      Arg #1 is the array you are searching within.
      Arg #2 is the element you are looking for.

      The array you want to search is the list of usernames... and you want to compare it against what the user wrote... i.e. Username.Text.

      The result is -1 if the element is not found in the array (if the login is not found in the list of usernames). Otherwise it will return the index where it is first found.
      haha genius...i didn't even know you could do that..
      4:BigKing> xD
      4:Best> i'm leaving chat
      4:BigKing> what did i do???
      4:Best> told you repeatedly you cannot use that emoji anymore
      4:BigKing> ???? why though
      4:Best> you're 6'4 and black...you can't use emojis like that
      4:BigKing> xD

      Comment


      • #18
        Originally posted by paradise! View Post
        haha genius...i didn't even know you could do that..
        Me neither, I've never done VB before. Google is your friend

        Comment


        • #19
          Originally posted by Nockm View Post
          Correction inspired by Zerzera (my hero)
          And I typed 'the' two times -_-

          I was very nervous correcting you Sir Nockm.
          You ate some priest porridge

          Comment


          • #20
            Originally posted by Nockm View Post
            Me neither, I've never done VB before. Google is your friend
            LOL QFT! :d

            Comment

            Working...
            X