I need to show the Leap year in visual basic, as well as calculate the Julian Date. I've got stuck on getting the results from the funtion into the label (my output component) I was just wondering if anyone could point me in the right direction

VB Code:
  1. Option Explicit
  2. Dim dayName(0 To 6), monDays(0 To 11) As String
  3. Private Sub cmdQuit_Click()
  4.     End
  5. End Sub
  6. Private Sub Form_Load()
  7.     dayName(0) = "Sunday"   'init day table
  8.     dayName(1) = "Monday"
  9.     dayName(2) = "Tuesday"
  10.     dayName(3) = "Wednesday"
  11.     dayName(4) = "Thursday"
  12.     dayName(5) = "Friday"
  13.     dayName(6) = "Saturday"
  14.    
  15.     monDays(0) = 31
  16.     monDays(1) = 4
  17.     monDays(2) = 31
  18.     monDays(3) = 30
  19.     monDays(4) = 31
  20.     monDays(5) = 30
  21.     monDays(6) = 31
  22.     monDays(7) = 31
  23.     monDays(8) = 30
  24.     monDays(9) = 31
  25.     monDays(10) = 30
  26.     monDays(11) = 31
  27. End Sub
  28. Function dateName(dd, mm, ByVal yy As Integer)
  29. Dim d, c, m, y As Integer
  30.     m = mm - 2  'oct = 8, Nov = 9 etc
  31.     If m < 1 Then
  32.         m = m + 12
  33.         yy = yy - 1 'of previous year
  34.     End If
  35.     y = yy Mod 100
  36.     c = (yy - y) \ 100 'Get century
  37.     'Now for Zeller's congruence .... 'add 700 in case -ve
  38.     '   cast (convert) single values to integer
  39.     d = (Int(2.6 * m - 0.2) + dd + y + Int(y \ 4) + Int(c \ 4) - (2 * c) + 700) Mod 7
  40.     dateName = dayName(d)
  41. End Function
  42. Function isLeapYear(year As Integer)
  43. Dim year As Boolean
  44.     If (year Mod 4 = 0 And year Mod 100 <> 0) Or year Mod 400 = 0 Then
  45.         Print "yes"
  46.     Else
  47.         Print "no"
  48.     End If
  49. End Function
  50. Function showLeapYear(ByVal year As Integer)
  51.     If isLeapYear = True Then
  52.         lblLeap = "Yes"
  53.     Else
  54.         lblLeap = "No"
  55.     End If
  56. End Function
  57.  
  58. Private Sub txtYear_KeyPress(KeyAscii As Integer)
  59. Dim day, mon, year, leapYearShow As Integer
  60. Dim dayStr As String
  61.     If KeyAscii = 13 Then
  62.         day = Val(cboDay.Text)
  63.         mon = cboMonth.ListIndex + 1
  64.         year = Val(txtYear)
  65.         dayStr = dateName(day, mon, year)
  66.         lblOutput = dayStr
  67.         Call showLeapYear(year)
  68.     End If
  69. End Sub

February has the Value "4" because I need to get the leap year validation script working before i can work out the number of days in february.

Thank you.
x