T
Targa
My plan is to use select case to position style elements in a table but
since I have to allow for every minute of the day, the select case statement
will be quite huge. See code below.
Is there a better/more efficient way to do this?
Thanks!
<%
MySchedule=rs("MyStartTime")
SELECT CASE MySchedule
Case "12:00 AM"
Response.write "style=top: 19px;"
Case "12:01 AM"
Response.write "style=top: 20px;"
Case "12:02 AM"
Response.write "style=top: 21px;"
Case "12:03 AM"
Response.write "style=top: 22px;"
Case "12:04 AM"
Response.write "style=top: 23px;"
Case "12:05 AM"
Response.write "style=top: 24px;"
Case "12:06 AM"
Response.write "style=top: 25px;"
'***AND SO ON****
Case "11:59 PM"
Response.write "style=top: 1458px;"
END SELECT
%>
since I have to allow for every minute of the day, the select case statement
will be quite huge. See code below.
Is there a better/more efficient way to do this?
Thanks!
<%
MySchedule=rs("MyStartTime")
SELECT CASE MySchedule
Case "12:00 AM"
Response.write "style=top: 19px;"
Case "12:01 AM"
Response.write "style=top: 20px;"
Case "12:02 AM"
Response.write "style=top: 21px;"
Case "12:03 AM"
Response.write "style=top: 22px;"
Case "12:04 AM"
Response.write "style=top: 23px;"
Case "12:05 AM"
Response.write "style=top: 24px;"
Case "12:06 AM"
Response.write "style=top: 25px;"
'***AND SO ON****
Case "11:59 PM"
Response.write "style=top: 1458px;"
END SELECT
%>