CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 1999
    Posts
    18

    [Q]: String parsing



    Hello,

    I have to port an app i wrote with MFC to VB. I used strtok (or whatever it is) to tokenize the command line i had to parse. It worked beautifuly. However VB lacks good string manipulating functions as I have seen. Is there anything in VB that can tokenize a string as like in C? Any code anywhere that does this?


    thanx,

    jeremy

  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: [Q]: String parsing



    Hi


    Back in the Days when I did use C, I never used the 'strtok' function (we always did it the hard way (i.e. someone had wrapped it in their own routine). I did however find a routine at http://www.planet-source-code.com/vb that may help:


    Either go to http://www.planet-source-code.com/vb and do a search for strtok (returns 2 results) or look at


    http://www.planet-source-code.com/vb...?txtCodeId=850


    for a direct conversion of strtok.


    Hope it helps


    Regards


    Chris Eastwood

    Software Engineer

    ACNielsen Ltd


    CodeGuru - the website for developers

    http://www.codeguru.com



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

Featured