Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive Remove Directory
Message
 
 
To
10/12/1999 18:07:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302015
Message ID:
00302136
Views:
32
Mike,

The real problem here is that since i is not declared and it exists in the calling routine the called routine will reuse the same memvar, which will cause the called routine to stomp on the value of the variable of it's caller.

Declaring it PRIVATE or LOCAL, LOCAL is much better will cause the routine to get it's own version of i.

>Hi Mark,
>
>>If you declare i, entries, aremdirs as private it works.
>
>Variables are automatically declared Private. Do you mean Local?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform