OrderedCollection
Hannes Hirzel
hirzel at spw.unizh.ch
Sat Dec 8 01:11:26 UTC 2001
On Sat, 8 Dec 2001, James Stark wrote:
> Hi,
>
> I have an OrderedCollection of Records - Records having variables
> familyname(string), firstname(string), age(int), height(float). I read in
> from a file of the following format:
>
> familyname, firstname, age, height
> REPEATED
>
>
> I read in the lines, and store them in my record, then add them to my
> orderedcollection.
>
> The question is: how do I access the methods of the objects in the
> OrderedCollection?
>
> Since when I make mylist an OrderedCollection
> I cant access methods of record using something like:
>
> (mylist at: 1) familyname printNl !
This actually should work. Could you please indicate the error message?
Hannes Hirzel
More information about the Squeak-dev
mailing list
|