Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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 18:50pm
Comments
VitorHugoGarcia at 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
good
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())
Next 
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2014
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