Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9 Collections and memory leaks
Message
From
06/04/2017 07:18:05
 
 
To
06/04/2017 06:33:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01649799
Message ID:
01649858
Views:
44
>>I am not a fan of collections and I don't use them. Arrays and custom (and mostly "Empty") object does good for me in most cases.
>
>I use collections a lot, but for small things, order of magnitude of a couple hundred elements max. They do help in cases where the search key is a string, and aScan() would match a shorter search string in a longer one, i.e. if a[4]="abc" and a[92]="ab", ascan(a, "ab") returns 4, not 92. Not so with collections, or at least I don't have to pad the key strings.
>


That depends on Set('Exact')

In addition, there are flags you can pass to ascan()
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform