Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check the scanning date of pic
Message
From
11/06/2008 11:06:40
 
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01323065
Message ID:
01323105
Views:
12
>Sergey now i want to replaced in a cursor it is true way.???
>
>CREATE CURSOR asdgt (code CHR(6),modified datetime)
>oWSH = CREATEOBJECT('Scripting.FileSystemObject')
>oFolder = oWSH.GetFolder('f:\project\school\stipcs')
>
>FOR EACH oFile IN oFolder.Files
>	
>	?oFile.Name, oFile.DateLastModified
>
>SELECT asdgt
>APPEND BLANK
>replace code WITH oFile.Name
>replace modified WITH oFile.DateLastModified
>
>NEXT
>brows
Looks good.
Alternatively, you can Replace both fields in a single line and use the IN alias clause.
Or use Insert-SQL:
FOR EACH oFile IN oFolder.Files
    Insert Into asdgt Values (oFile.Name, oFile.DateLastModified)
NEXT
hth
-Stefan
Previous
Reply
Map
View

Click here to load this message in the networking platform