Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NUMBER OF FILES IN A DIRECTORY
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00344120
Message ID:
00344588
Views:
42
Thanks, Jim. Now it's absolutely clear.

>>Jim,
>>
>>Thanks a lot for this code. Firstly I created a program and then tried to run. It says variable lnRecurse not found. I added this variable at the top and assign 1 to it, now it returns .t. I think this program was originally used for populating treeview, not for calculating number of files. I'll check, if I can adjust this program for my needs...
>
>Nadya,
>
>Yes it was for that so all you have to do is change it to count and return the count. Also lnRecurse MUST be declared as PRIVATE and assigned the value of 0 just before this routine is first called (not at the top of this routine). lnRecurse is used to prevent the recursion from getting out of hand and causing an error.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform