Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check files in a folder
Message
De
09/10/2011 07:31:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01525897
Message ID:
01525905
Vues:
55
If you know that the number starts at position 4, you can use substr(). You can get rid of the extension with juststem() or with the word manipulation functions.
substr(juststem(laFiles(i,1)), 4)
>Hi
>
>I want check if a file is missing in a folder.
> For example, below adc99446.txt is missing.
>
>adc99442.txt
>adc99443.txt
>adc99444.txt
>adc99445.txt
>adc99447.txt
>
>I tried subst() and val () to get the number but failed to use for and adir() to scan the files,
>because I found no way use if a - b # 1 inside FOR command.
>
>Could anybody help ?
>
>Moises
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform