Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 4th, 2005, 6:56 AM   #1
Pingu14
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 Pingu14 is on a distinguished road
Need Some Help:

ok, i have this script to search a text file for a variable


Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile ("C:\Documents and Settings\FAMILY\Desktop\book1.csv", 1)

strNextLine = objTextFile.Readline
arrList = Split(strNextLine , ",")

If arrlist(0) = "" Then
For i = 1 to Ubound(arrlist)
Wscript.Echo "date: " & arrlist(i)
Next
end if

Now, i wan to be able to have an Inputbox set the variable for arrlist(0), unfortuneately when i put in an inpu box, it does not recgnise the Ubound function. Can somebody please help me out!
Pingu14 is offline   Reply With Quote
Old Apr 30th, 2005, 1:20 PM   #2
BaldEagle
Newbie
 
BaldEagle's Avatar
 
Join Date: Apr 2005
Location: Lisbon, CT
Posts: 9
Rep Power: 0 BaldEagle is on a distinguished road
I am sometimes a little dense, so please indulge me. How is the input box to interact with this script?

BaldEagle
__________________
If you can't be kind, at least have the decency to be vague.

You may be only one person in the world, but you may also be the world to one person.

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names, and all are different colors, but they all manage to live comfortably in the same box.
BaldEagle is offline   Reply With Quote
Old Jun 16th, 2005, 10:51 AM   #3
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
I'm sure this person solved this problem by now (or gave up), but for the record I think what he was doing wrong was passing the actual textbox and not the string... so to solve his problem he would simply have to use .value

this is at least what I can gather from his rather convoluted explaination of the problem
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell

http://web.bryant.edu/~srk2

Last edited by skuinders; Jun 16th, 2005 at 10:53 AM.
skuinders is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC