Guest User

Untitled

a guest
Nov 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.58 KB | None | 0 0
  1.    Private store As List(Of Decimal) = New List(Of Decimal)
  2.  
  3.     store.add()
  4.     store.Sort()
  5.     Invoice()
  6.  
  7.     Sub Invoice()
  8.         'Calling this sub method will always refresh the Invoice values
  9.         LargeInvoice.Text = CType(store.Max, String)
  10.         SmallInvoice.Text = CType(store.Min, String)
  11.         If store.Count > 2 Then
  12.             'List is already sorted getting the middle of array as int
  13.             middle = CType((store.Count() / 2), Integer)
  14.             'MsgBox("Middle = " & middle)
  15.             MidInvoice.Text = CType(store(middle), String)
  16.         End If
  17.     End Sub
Add Comment
Please, Sign In to add comment