Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in code for XP
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01368763
Message ID:
01368769
Views:
7
>these codes are working well in vista. But problem in xp. Can any one tell me what is problem.
>thanks
>CREATE CURSOR asdgt (code CHR(6),modified date) 
>
>oWSH = CREATEOBJECT("Scripting.FileSystemObject")
>oFolder = oWSH.GetFolder('F:\project\school\Stpics')
>FOR EACH oFile IN oFolder.Files
>=oFile.Name,oFile.DateLastModified
>INSERT INTO asdgt (code, modified) VALUES (oFile.Name, oFile.DateLastModified)  
>next
>!! Wrong title: please correct his..>Problem in codes for xp

Some system administrators may disable WSH and your code would not work then. You can use ADIR() function instead to write the same loop.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform