Results 1 to 3 of 3

Thread: Another Q:) String related question and array.

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Another Q:) String related question and array.

    34 21 36 56 36 28 78 6a 7b 7c
    7d a6 52 b5 51 81 76 65 61 21
    23 53 63 63 5a 5b 65 61 86 b8
    85 47 4b 48 46 43 d6 4d d4 2d
    24 24 c2 b2 82 16 17 18 17 1b
    12 18 16 5h 3h a2 b2 4h 5h 68
    52 31 3h

    I have the above String (note that there's a ENTER char (chr(13)) between lines)
    I need to remove all the ENTER and then put the numbers into an array
    Say
    34 --> array_name[1]
    21 --> array_name[2]
    ...

    Is it possible?

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    im not sure i get what u mean?
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Feb 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think it is possible.

    Would first need to create the array.
    I think you would need to use the Trim function. Thats something to do with spaces.
    And then create a look then keeps trimming and saving to the array.

    Not too sure though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question on player array - not help.
    By samelewis in forum News and General
    Replies: 1
    Last Post: 12-29-2007, 04:59 PM
  2. Replies: 2
    Last Post: 07-15-2007, 03:34 AM
  3. Makeing a whole array into a string???
    By ronny.m.p in forum OSR Help
    Replies: 2
    Last Post: 04-24-2007, 07:44 AM

Posting Permissions

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