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

Importing a comma delimited textfile

P: 12
I have a working script that imports a space or tab delimited textfile using the vbTab attribute. But because of an upgrade the file has now become comma delimited. what would I need to change to make this script work with the new file format?

strTextLine=objText.Readline
data=Split(strTextLine,vbTab)

RLog.AddNew
RLog("fldUnknown")=data(0) 'Site ID
RLog("fldAccountName")=data(1) 'Client ID
RLog("CustomerName")=data(2) 'Client Name
Jul 19 '07 #1
Share this Question
Share on Google+
1 Reply


jhardman
Expert 2.5K+
P: 3,405
Expand|Select|Wrap|Line Numbers
  1.     data=Split(strTextLine,",")
Jul 20 '07 #2

Post your reply

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