Date iteration

  • Thread starter Thread starter Nikolay Petrov
  • Start date Start date
N

Nikolay Petrov

I have two dates - Startdate and EndDate
How could I make an iteration through them, so I can do things with
every date between these two dates? Including them?

Thanks
 
Cor Ligthert said:
Therefore I would every time add a day to the startdate in a loop until it
was equeal to the enddate. Something as
\\\
while startdate < enddate

=> 'Do While...' -- or do you want to make 'Do' optional too ;-)?
 
Herfried,
=> 'Do While...' -- or do you want to make 'Do' optional too ;-)?

I knew it when I was typing it that there was something wrong

In those cases I use forever the 'do unti'l, I become always confused by the
"loop" and the "end while" at the end of the while and the do while.

You are right I don't like them, however I can make it optinal by not using
it. I am forced to use the dim. (The while was in this case nice to show the
simplicity).

By the way I find the 'Do' one of the most nice syntatical words, what I
find even more for the keyword 'as' in Visual Basic. (And you should know
that I don't want to make 'Du' optional, the last only for those who
understand the German language)

Thanks by attending me on this by the way.

:-)

Cor
 

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

Back
Top