By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

help on Line Input statement

P: 55
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
Share this Question
Share on Google+
1 Reply


100+
P: 1,646
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.