Re: How do you convert a List back to a sequence ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Arthur,

Here's a thought:

Instead of trying to convert a list's contents back to a sequence, make a
*parallel* sequence, "MyDates", which has the dates in exactly the same
order as your list (ie, create it at the same time); then use the index from
the list to refer to the related date in the sequence.  In other words,
instead of *getting* the sequence of the date *from* the list, use the index
from the list to refer to an element in the pre-existing parallel sequence,
which already has sub-elements of the year/month/day.

Would that work for you?

Dan Moyer


----- Original Message -----
From: "Arthur Mashiatshidi" <arthurm at GOLDFIELDS.CO.ZA>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Wednesday, September 27, 2000 12:11 AM
Subject: How do you convert a List back to a sequence ?


> My Problem is converting a List-string back to a sequence: (# comments)
> Consider the following:
>
> MyList = (blaa....blaa...)
> MyDate = {2000,03,15}
> # to put this into  Mylist
>
> addItem(MyList, sprint(Mydate))  --# if you don't sprint Mydate, it will
> bomb out in certain conditions!!???
> # now I want to call MyList to use it to reference to a date in the
calendar
>
> MyNewDate = getItem(MyList, i)  # i is the number in of the item in the
list
> # but alas, this is no longer {2000,03,15}
> # what is it? - I don't know, I can't seem to figure it out.
>
> How do you convert (MyList, i) back to MyDate sequence, so I can use
> subscripting to access the elements?
>
> Arthur B. Mashiatshidi

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu