Message
From
06/04/2017 09:38:04
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
06/04/2017 07:18:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01649799
Message ID:
01649872
Views:
48
>>>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()

Yes, but I do not touch the set("exact") as it may influence other pieces elsewhere and it's cumbersome to set it and revert it after each ascan() on a string. And of course I forget the additional parameters, or else I wouldn't be mentioning that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View