Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check files in a folder
Message
From
09/10/2011 07:31:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01525897
Message ID:
01525905
Views:
57
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform