Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check the scanning date of pic
Message
De
11/06/2008 11:06:40
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01323065
Message ID:
01323105
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform