Velocity Reviews > Jear function

Jear function

Robert
Guest
Posts: n/a

 08-23-2005
Hello, i have a function, thet show me the jears, from now until 5 jears
later.

That happens with this function:

Function JaarArray
Dim sJaar()

redim sJaar(Year(Date)+6-2005,2)
i=1
For p = 2005 to Year(Date)+5
sJaar(i,1) = (p)
sJaar(i,2) = (p)
i=i+1
next
JaarArray = sJaar
End function

Who can change this function, zo he do this:

He must show, all years, from 1950, until now, but now we are
in the year 2005, buth he must automaticly change 2005 to 2006, zo then i
can see
1950, until 2006..

Who kan help me with this function?

Bullschmidt
Guest
Posts: n/a

 08-23-2005
Perhaps change this:

For p = 2005 to Year(Date)+5

For p = 1950 to Year(Date) + 1

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...

<<
Hello, i have a function, thet show me the jears, from now until 5 jears
later.

That happens with this function:

Function JaarArray
Dim sJaar()

redim sJaar(Year(Date)+6-2005,2)
i=1
For p = 2005 to Year(Date)+5
sJaar(i,1) = (p)
sJaar(i,2) = (p)
i=i+1
next
JaarArray = sJaar
End function

Who can change this function, zo he do this:

He must show, all years, from 1950, until now, but now we are
in the year 2005, buth he must automaticly change 2005 to 2006, zo then
i
can see
1950, until 2006..

Who kan help me with this function?
>>

*** Sent via Developersdex http://www.developersdex.com ***

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Alf P. Steinbach C++ 10 07-27-2011 05:51 AM Giannis Papadopoulos C Programming 5 09-05-2005 09:06 PM seberino@spawar.navy.mil Python 2 08-01-2005 12:38 PM komal C++ 6 01-25-2005 11:13 AM James Vanns C++ 7 01-21-2004 02:39 AM