467,151 Members | 884 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

help on Line Input statement

I have data in a txt file and it look like dis:
kevin 22 34 35
Mulan 56 45 9

i want to read dis data and get 20% of each number.
Line input reads the line but how do i manipulate each item in line?
Help please!!
Nov 13 '06 #1
  • viewed: 2355
Share:
1 Reply
1GB
I have data in a txt file and it look like dis:
kevin 22 34 35
Mulan 56 45 9

i want to read dis data and get 20% of each number.
Line input reads the line but how do i manipulate each item in line?
Help please!!
Hi. You might investigate the Split() function

Dim arData As Variant

arData = Split(MyText, " ")

arData(0) will give you kevin
arData(1) will give you 22
etc
Nov 13 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by waters | last post: by
15 posts views Thread by Buck Rogers | last post: by
8 posts views Thread by drose0927 | last post: by
1 post views Thread by JNariss@gmail.com | last post: by
12 posts views Thread by adamurbas@hotmail.com | last post: by
reply views Thread by jebbyleezer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.