Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Scripting object
Message
From
14/12/2000 13:08:52
 
 
To
14/12/2000 12:48:09
Steve Summers
Pima County Superior Court
Tucson, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00453480
Message ID:
00453498
Views:
41
>I'm tring to convert this code from vbs to vfp. It simply list a list of files in a certain directory. I get the following error "'Files' is not a varible".
>
>
>Here is the code:
>
>fso = CreateObject("Scripting.FileSystemObject")
>f = fso.GetFolder("c:\test")
>fc = f.Files
>For Each f1 in fc
> s = s + f1.name
> s = s + "
"
>Next
>? s

a through j are designated workarea names in VFP, so it's looking for a field named Files in the alias f, which doesn't exist.
Change f to ofolder or such.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform