Click here to Skip to main content
11,925,745 members (64,279 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
Dear all,

I am stuck at a place where i need to print all the dates existing in a range. For eg., 2004 to 2009.

My output should be like 2004, 2005, 2006, 2007, 2008, 2009.
Posted 19-Dec-12 19:50pm
VitorHugoGarcia 20-Dec-12 7:56am
No question asked.
Do you think we can figure out what you want with what you state ? I can't.
So please improve question...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Oh Dear...

You need to learn so much...

I don't know what you exact want to do, but it looks like you need to use For...Next[^] loop.
Dim i as Integer = 0
For i = 2004 to 2009
    Msgbox (i.ToString())

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100