Results 1 to 2 of 2

Thread: I Need String Sorting Help!

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 1999
    Location
    ,Mo,USA
    Posts
    36

    Post

    Hey...what i want to do is kinda complicated so i think its best just to show you:

    i have a file set up like this:
    www.url.com Integer /whatever(Path) 1-1-2000

    www.url.com Integer /whatever(Path) 1-1-2000
    etc...

    in other words sets of data delimited by spaces, and lines.What i want to do is first parse the file making each line into a string (or array of strings it doesnt matter)
    eg
    www.url.com Integer /whatever(Path) 1-1-2000

    then seperate those out by words eg
    strUrl = www.url.com
    intNumber = Integer
    strPath = /whatever

    so i can assign those to a user defined type.I really have no idea how to even start this considering most of what i know about string ops came from the tutorials on this site =)
    btw im using VB5 ent.

    Any Help GREATLY appreciated,
    CarlosTheJackal

    [This message has been edited by CarlosTheJackal (edited 01-04-2000).]

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239

    Post

    It looks like you want to Parse the Strings.
    You will have to have some order to the Strings such that they conform to the same format, i.e. length, slashes at the same location ect.. I have sent a Parsing Routine by email. It can be found on VBCode.com or Planetwide

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