Urgent -Problem in Dialog List

HiThere is a dialog list in my Form (Its a web based application).

I want to show the values in the dialog List in this way, that when u will open the form it will show the Currnet Month with year to next year same Month.

Suppose it is February 2008, then the dialog list will show (Feb-08,March-08,Apr-08,…Jan-09,Feb-09).

Suppose it is March 2009, then the dialog list will show (Mar-09,Apr-09,…Jan-10,Feb-10,March-10).

I dont want to be Hard coded. The value of the dialog list will automatically change according the current Month and Year.

I tried a lots but unable to find the solution. It is possible in formula or Java Script.Can anybody have the code to do that.Pls send me smruti2s2p@gmail.com or can post it here.

Its urgent.

Thanx

Smruti.

Subject: Urgent -Problem in Dialog List

This will get you basically what you want. If you want different abbreviations for the months, change them in the @Select part of the @For loop.

@For( n := 0; n < 13; n := n + 1;

newDate := @Adjust( @Today; 0; n; 0; 0; 0; 0 );

moString := @Select( @Month( newDate ); “Jan”; “Feb”; “Mar”; “Apr”; “May”; “Jun”; “Jul”; “Aug”; “Sep”; “Oct”; “Nov”; “Dec” )+ “-” + @Right( @Text( @Year( newDate ) ); 2 ) ;

moList := @Trim( moList : moString ) );

moList

Subject: RE: Urgent -Problem in Dialog List

MarthaYou code is working but i found something wrong .Suppose you change the system date from 2008 to 2010, it will showing right, but after that when you will change the system date 2010 to 2009, its still showing 2010. Is there anything wrong…???

Pls check it again.

Thanx

Subject: RE: Urgent -Problem in Dialog List

Thanx MarthaU gave me the exact solution what i was expecting.

Thanx a lots again.