Angel <(E-Mail Removed)> wrote:
> Can someone let me know how we can have a for loop where
> the date is incremented without using date as the control
> variable as hown below.
>
> dim varDate as Date
> For varDate = StartDate + 1 To EndDate - 1
> Next varDate
>
> the above stmt is no longer supported in .NET
If you want to do it in VB.NET, I'm not sure - you *might* need to use
a Do/While loop instead.
In C# you could do something like:
for (DateTime foo = StartDate; foo=foo.AddDays(1); foo < EndDate)
{
....
}
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too