• user warning: Unknown column 'captcha_type' in 'field list' query: SELECT module, captcha_type FROM 24moves_drupal6_captcha_points WHERE form_id = 'search_theme_form' in /home/content/e/x/t/ext237/html/modules/captcha/captcha.inc on line 60.
  • user warning: Unknown column 'captcha_type' in 'field list' query: SELECT module, captcha_type FROM 24moves_drupal6_captcha_points WHERE form_id = 'search_block_form' in /home/content/e/x/t/ext237/html/modules/captcha/captcha.inc on line 60.
  • user warning: Unknown column 'captcha_type' in 'field list' query: SELECT module, captcha_type FROM 24moves_drupal6_captcha_points WHERE form_id = 'user_login_block' in /home/content/e/x/t/ext237/html/modules/captcha/captcha.inc on line 60.

Formatting Hours and Minutes (Classic ASP)

Comments

1 comment posted
And then use that to create this "Duration Selection" box

<pre>
Function BuildDurationSelBox(pDurationSelectedIndex, bLocked)
Dim i, iDurationSelectedIndex, sSelected

iDurationSelectedIndex = cInt(pDurationSelectedIndex)

If bLocked = False Then
Response.Write "<select id='selDurationIndex' name='selDurationIndex'>"
For i = 1 to 20
If i = iDurationSelectedIndex Then sSelected = " SELECTED" Else sSelected = ""
Response.Write "<option value='" & i & "'" & sSelected & ">" & _
FormatHours(i,False) & " Hrs, " & FormatMinutes(i) & " Mins</option>"
Next

Response.Write "<option value='" & iThisProvidorCloseIndex - iThisProvidorStartIndex & "'" & sSelected & ">" & _
"All Day Event</option>"
Response.Write "</select>"
Else
Response.Write FormatHours(iDurationSelectedIndex,False) & _
" Hrs, " & FormatMinutes(iDurationSelectedIndex) & " Mins"
End If

End Function</pre>

Posted by Joe Lippeatt on Thu, 10/07/2010 - 16:39