Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do nesting level
Message
From
17/09/2001 05:02:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/09/2001 03:46:52
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00557186
Message ID:
00557206
Views:
16
>I have wrote a function to quick-sort' an array of objects, but when the array is a bit larger (~600), I receive an "Allowed DO nesting level exceeded." error message.
>
>I do not have any do-loop included in another do-loop, but maybe it still counted when a do-loop is included in my recursive function...
>
>Is it posible to remove this limitation, or must I rewrite my recursive function?
>
>Thanks,
>Jimi
Jimi,
Each recursive call counts as another level. You could possibly write your function w/o a recursion. OTOH for sorting an array think twice if you need it at all. asort() is already fast IMHO :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform