Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
RS.Sort = "amount desc"
'RS.moveFirst
For i = 1 To 5
If RS.Eof Then Exit For
' retrieve RS("amount") blah blah...
RS.moveNext
Next
<%
response.expires = 0
dim topfive(4)
values = split("1,2,3,4,5,6,7,8,9",",")
for each value in values
topfivevals(value)
next
Function topfivevals(value)
for i=0 to ubound(topfive)
If value > topfive(i) then
for j=ubound(topfive) to i step -1
If j-1 => 0 then
topfive(j) = topfive(j-1)
end if
next
topfive(i) = value
exit for
End If
Next
End Function
Function topfiveout()
response.write "----------------------------------<br>" & VbCrLf
for z=0 to ubound(topfive)
response.write z & "|" & topfive(z) & "|<br>" & VbCrLf
next
response.write "----------------------------------<br>" & VbCrLf
End Function
%>