Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
 
 
To
30/11/2006 12:53:57
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173721
Message ID:
01173800
Views:
15
>>>>Anyway, looks like I have to use a different approach. I don't really want to use FileScriptingObject because it could be slower and I'm not sure it allows to specify a mask.
>>>>
>>>>Do you or somebody have a suggestion for me?
>>>
>>>Couldn't you use sys(2000)? It allows mask...
>>
>>I've tried ?sys(2000,"t:\jpg\*g*.*") and it returned 654.jpg, which is wrong.
>
>I just tried ?sys(2000,"C:\*E.*") and it correctly returned AUTOEXEC.BAT.
>
>I think sys(2000) is usually a better way to go than adir.

I've just tried it again and it returned 1154.jpg. Looks like . is ignored. T is the terminal server...

If I specify the extension, then it works correctly. So, I may use it for my task, though for now I just added some restrictions and try/catch.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform