Guest User

Untitled

a guest
Mar 14th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.87 KB | None | 0 0
  1. For i = 1 to Ubound(SortArray)
  2.         If CInt(Right(SortArray(i),3)) - strPrevious > 1 then
  3.             GapCount = strPrevious
  4.             Do until GapCount => (CInt(Right(SortArray(i),3)) -1)
  5.                 GapCount = GapCount + 1
  6.                 If m = Cint(Quantity) Then
  7.                     Exit For
  8.                 Else
  9.                     If Loc = "xxx" or Loc = "xxx" Then
  10.                         If GapCount > 10 And GapCount < 100 Then
  11.                             GAP = Ucase(Loc) & Ucase(Category) & "0" & GapCount
  12.                             Label1.Text += "<li>" & GAP & "</li>"
  13.                             m = m + 1
  14.                         Else
  15.                             GAP = Ucase(Loc) & Ucase(Category) & GapCount
  16.                             Label1.Text += "<li>" & GAP & "</li>"
  17.                             m = m + 1
  18.                         End If
  19.                     Else
  20.                         If GapCount > 100 Then
  21.                             GAP = Ucase(Loc) & Ucase(Category) & GapCount
  22.                             Label1.Text += "<li>" & GAP & "</li>"
  23.                             m = m + 1
  24.                         End If
  25.                     End If
  26.                 End if
  27.             Loop
  28.         End If
  29.    
  30. strPrevious = CInt(Right(SortArray(i),3))
  31. Next
Add Comment
Please, Sign In to add comment