Collection recursion problem

S

Seth Williams

I just can't seem to get this - - - -

I've got a collection of days, times and subject matter in this format (0-6
for days):

Sunday 3pm Meeting 1
Sunday 5pm Meeting 2
Sunday 6pm meeting 3
Tuesday 3pm Meeting T1
etc.

I have the following code (pseudo) working if I want to make it look like
the above

For each ap in ApCollection
print Day & vbtab & print Time & vbtab and Print Subject
Next

(when I say 'print', what I'm doing is to put it in an html table format,
each item in a table cell)

What I'd like to do is to skip the day, if it's the same day as the previous
appointment/meeting
Since the Day is in integer format, I figure there's a way - but I just
can't get the logic

I need it like this:
Sunday 3pm Meeting 1
5pm Meeting 2
6pm meeting 3
Monday 3pm Meeting M1
Tuesday 3pm Meeting T1

Can anyone help here?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top