Click here to Skip to main content
15,886,798 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
_Vitor Garcia_ 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

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.
VB
Dim i as Integer = 0

For i = 2004 to 2009
    Msgbox (i.ToString())
Next 
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900