snap990 1 Posted August 5, 2013 Report Share Posted August 5, 2013 Hi! I want to navigate between 2 dropdown dates value, 2013 08 01 to 2013 08 05Can you please help me what is wrong on this code. ui drop down("Start Month", "1,2,3,4,5,6,7,8,9,10,11,12", #s month)ui drop down("Start Day", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31", #s day)ui drop down("Start Year", "2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013", #s year)ui drop down("End Month", "1,2,3,4,5,6,7,8,9,10,11,12", #e month)ui drop down("End Day", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31", #e day)ui drop down("End Year", "2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013", #e year)clear list(%dates)set(#current year, #s year, "Global")loop($subtract(#e year, #s year)) { if($comparison(#current month, "=", "")) { then { set(#current month, #s month, "Global") } else { set(#current month, 1, "Global") } } loop(12) { if($comparison(#current day, "=", "")) { then { set(#current day, #s day, "Global") } else { set(#current day, 1, "Global") } } if($comparison(#current month, "<=", 12)) { then { loop(31) { if($comparison(#current day, "<=", 31)) { then { if($comparison(#current day, "<", 10)) { then { set(#dd, "0{#current day}", "Global") } else { set(#dd, #current day, "Global") } } if($comparison(#current month, "<", 10)) { then { set(#mm, "0{#current month}", "Global") } else { set(#mm, #current month, "Global") } } set(#date, "{#current year}{#mm}{#dd}", "Global") navigate("http://www.google.com/{#date}", "Wait") Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.