Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protected array in recursive function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00646889
Message ID:
00646908
Views:
16
"Sergey rulez"! ;)

>Make it local
LOCAL w[1]
>>Hi,
>>
>>I have a recursive function that uses an array to store data collected from a table. How can I protect this array from having its contents changed after the return of a recursive call?
>>
>>Let me try to explain better:
>>
>>
>>Function recursive
>>parameters x,y,z
>>&& ...
>>select a,b,c ;  && 1
>>from tableX  ;
>>into array w
>>
>>recursive(a,b,c) && 2
>>&& ...
>>
>>
>>How can I keep the contents of the array w that were select from tableX (1), after calling the function again (1), where another select will be done placing the result in the same array?
>>
>>TIA
>>
>>Alonso
Like Frank said: "I did it... MY WAY!"
Previous
Reply
Map
View

Click here to load this message in the networking platform