Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Function setthepercentage(ByVal thegoals As List(Of Integer), ByVal thename As String) As String Dim over05 As Integer = 0 Dim over15 As Integer = 0 Dim over25 As Integer = 0 Dim countelements As Integer = 0 'work out if it is 0.5 - 1,3,4,5,3,2,4,5, For Each element As String In thegoals 'chekc if over 0.5 countelements = countelements + 1 If element > 0 Then over05 = over05 + 1 'check if over 1.5 ElseIf element > 1 Then over15 = over05 + 1 'check if over 2.5 ElseIf element > 2 Then over25 = over05 + 1 End If Next over05 = (over05 / countelements) * 100 If over05 <> "NaN" Then Session(thename & "over05") = over05 End If over15 = (over15 / countelements) * 100 If over15 <> "NaN" Then Session(thename & "over15") = over15 End If over25 = (over25 / countelements) * 100 If over25 <> "NaN" Then Session(thename & "over25") = over25 End If End Function
I also count how many times it goes through a loop so
If element > 0 Then over05 = over05 + 1 end if
this give me the numbers to work with so:
countelements = countelements + 1
over05 = (over05 / countelements) * 100
|VB.Net - Not Sure if Multi-threading is What I Need||4||29|
|MailAddress in vb||4||29|
|VB.net Use code to open two DateTimePickers at the same time||7||34|
|asp.net mvc , views, hidden values ?||2||16|