Login | |
|
 |
Select Case wont read variables - 9/24/2005 11:39:28 AM
|
|
 |
|
| |
icode4u
Posts: 7
Score: 0
Joined: 9/24/2005
Status: offline
|
For some reason the Select is not recieving the results of the function. If you do a response.write GetDates("3/21" , "4/20") It will print out the values. between the 2 dates. So why wont the select use the string? This is the function that make a string of dates for the select to choose from Function GetDates( DateStart, DateEnd ) DateStart = cdate( DateStart )-1 DateEnd = cdate( DateEnd ) Do until DateStart = DateEnd DateStart = DateStart + 1 Datestr = Datestr &(chr(34)&datepart("m",DateStart)&"/"&datepart("d",DateStart)&chr(34)&" , ") Loop GetDates = cstr(mid(Datestr,1,len(Datestr)-3)) End Function This is part of the case the result of the function is passed to Select Case month(date)&"/"&day(date) Case GetDates("3/21" , "4/20") sign = "aries" aries = " SELECTED " Case GetDates("4/21" , "5/20") sign = "taurus" Case GetDates("5/21" , "7/21") sign = "gemini" Case GetDates("5/22" , "6/22") sign = "cancer" Case GetDates("6/23" , "7/23") sign = "leo" Case GetDates("7/24" , "8/22") sign = "virgo" Case GetDates("8/23" , "9/22") sign = "libra" Case GetDates("9/23" , "10/22") sign = "scorpio" Case GetDates("10/23" , "11/21") sign = "sagittarius" Case GetDates("11/22" , "12/20") sign = "capricorn" Case GetDates("1/21" , "2/19") sign = "aquarius" Case GetDates("2/20" , "3/20") sign = "pisces" End Select response.write sign
|
|
| |
|
|
|
|
|