Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error for some users
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error for some users
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01121469
Message ID:
01121469
Views:
44
Hi everybody,

This code works for several users, but returns unknown com status error for my colleague.
loFSO = createobject('Scripting.FileSystemObject')
loFolder = m.loFSO.GetFolder(m.tcDirectory)

for each loFile in m.loFolder.files
Should I re-write it to use adir instead to be safe?

I think the reason could be that there are no files and I don't check for this.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform