Page 1 of 1

VB vs. C (a text file story)

Posted: Tue Dec 21, 2004 5:01 pm
by dh
Silly title..

Ok here is the problem, is there a "easy" way to parse text in VB6?? If so, how. I'm looking to streamline some stuff and allow myself to use a "C-like" language in one of my projects. (My projects: many and time consuming ;P)

Thanks ahead of time ;D.

Re:VB vs. C (a text file story)

Posted: Wed Dec 22, 2004 6:06 am
by df
its very easy to write a 'tokeniser' in vb, since vb is loaded with string native functions, and take some input and token that down into an array.

Re:VB vs. C (a text file story)

Posted: Wed Dec 22, 2004 1:19 pm
by dh
oh ya?

Right now I use instr() to find the next seperator and then use mid$() to pull it out.

Re:VB vs. C (a text file story)

Posted: Wed Dec 22, 2004 1:52 pm
by SuperDre
what's wrong with that?
if the seperator is always the same, you can use things like Split()

Re:VB vs. C (a text file story)

Posted: Thu Dec 23, 2004 10:34 am
by dh
@SuperDre: The seperator can be , and {space}.

Split() ea'? I'll look into it. Thanks!