Results 1 to 11 of 11

Thread: ascii numbers to letters???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    153

    ascii numbers to letters???

    Does anyone know how to convert ascii numbers into letters. I'm having trouble because what might be 152 could also be read as 15 and 2, or 1 and 52 etc.

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I don't understand what you need.... but the CHR$() might be what you're looking for.
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    153
    I mean if I have a txt file with ascii numbers in I want to be able to convert the numbers into their characters.

  4. #4
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    VB Code:
    1. Debug.Print Chr$(64)
    2.    'This will print "@" in the Immediate window. (without the quotation marks)
    Last edited by Mc Brain; Jan 20th, 2002 at 01:14 PM.
    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.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    153
    What I mean is if I had a txt file with "1635274658365857" in it how could I change them into characters, because vb could interpret what should be 163 as 16 and 3.

  6. #6
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Oh.... that's another problem. You should not save them that way in the text file. There's not viable way to do that. You may try to interpret if it's a possible number or not: "256" could only be read as "25" & "6", but if you have more numbers in its trail.... I would say it's quite impossible.
    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.

  7. #7
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    If you want to save them all together, save them as an octets (lie the IPs). Instead of this 1635274658365857 save this in the text file: 016035002074065083065008057

    This would lead you to the numbers 16, 35, 2, 74, 65, 83, 65, 8, 57....

    see the difference?
    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.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    153
    On the subject of txt files do you know how to search for 1 string in a txt file (to enable a pause function when doing large operations on strings on txt files). If I could do this I could put the string currently being read into another txt file and search for that string next time I start the App.

  9. #9
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    what?
    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.

  10. #10
    Hyperactive Member
    Join Date
    May 2001
    Location
    England
    Posts
    312
    use the alex bunting caertified give it all youv got ascii generator

    enjoy
    Attached Files Attached Files
    Power to 2000 Electronic Donkeys!
    www.edonkey2000.com
    I hate case sensitivity... all you get down the M1 is "are we there yet" and "ouch, watch the bumps".

  11. #11
    Lively Member
    Join Date
    Jan 2002
    Posts
    108
    the Instr() Function searches for a string with in a string

    and as mentioned above you should use a denoter of some kind to keep your numbers in check and then use the CHR() function to change them into their ASCII Characters

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