fso error
fso error
fso error
fso error
fso error
fso error fso error fso error fso error fso error fso error fso error fso error
fso error fso error
fso error
Go Back  Xtreme Visual Basic Talk > > > fso error


Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2005, 04:45 PM
akim123 akim123 is offline
Regular
 
Join Date: May 2003
Posts: 98
Default fso error


hi,
here is an example of my code.
i always get an error message.
can anyone help me please!

###############################


Dim fso_folder As Scripting.Folder
Dim fso_file As Scripting.File
Dim i as Long
i = 1

For Each fso_file In fso_folder.Files


file_names(i) = fso_file.Name

i=i+1
next fso_file
###############################

the errror message says:

'System.NullReferenceException'

thx alot,

akim123
Reply With Quote
  #2  
Old 01-14-2005, 04:14 PM
MKoslof's Avatar
MKosloffso error MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

If using .Net, just use the System.io class for your file modifications. You can use the Directory.GetFiles() method to loop an entire file structure, etc.
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
fso error
fso error
fso error fso error
fso error
fso error
fso error fso error fso error fso error fso error fso error fso error
fso error
fso error
 
fso error
fso error
 
-->