VB vs. C (a text file story)

Programming, for all ages and all languages.
Post Reply
dh

VB vs. C (a text file story)

Post 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.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

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

Post 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.
-- Stu --
dh

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

Post by dh »

oh ya?

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

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

Post by SuperDre »

what's wrong with that?
if the seperator is always the same, you can use things like Split()
dh

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

Post by dh »

@SuperDre: The seperator can be , and {space}.

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