Guest User

Untitled

a guest
Feb 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. If order(i).purchaseMethod = "S" Then
  2.  
  3. Sub calculatePopularPayment(ByRef popularMethod, ByVal order)
  4. 'declares the subclass-specific variables
  5. Dim i As Integer = 0
  6. Dim officeCount As Integer = 0
  7. Dim websiteCount As Integer = 0
  8.  
  9. For i = 0 To 299
  10. If order(i).purchaseMethod = "S" Then
  11. officeCount = officeCount + 1
  12. ElseIf order(i).purchaseMethod = "W" Then
  13. websiteCount = websiteCount + 1
  14. End If
  15. i = i + 1
  16. Next
Add Comment
Please, Sign In to add comment