Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 Collections and memory leaks
Message
De
06/04/2017 07:18:05
 
 
À
06/04/2017 06:33:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01649799
Message ID:
01649858
Vues:
45
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform