[Gambas-user] Accessing the nth item in a collection
B Bruen
bbruen at ...2308...
Thu Jun 5 05:12:21 CEST 2014
On Wed, 4 Jun 2014 17:07:46 -0700 (PDT)
VonZorch <VonZorch at ...626...> wrote:
> If the key values aren't important then use something like
> Collection.add(Value,str(Collection.count+1))
> then you can access any given item by
> Value=Collection[str(Index)]
>
>
No, the key values are important (to the rest of the application). It's just that in this particular instance all I need to get at is the last or first item that was added.
--
B Bruen <bbruen at ...2308...>
More information about the User
mailing list