Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. txtDate.value=Date
  2.  
  3. Function bntCalc_onclick()
  4. Dim born
  5. born = CDate(txtBirthDay.value)
  6. If chkAges.getValue(1)=True Then
  7. txtDays.value=DateDiff("d",born,Date)
  8. End If
  9. If chkAges.getValue(2)=True Then
  10. txtMonths.value=DateDiff("m",born,Date)
  11. End If
  12. If chkAges.getValue(3)=True Then
  13. txtYears.value=DateDiff("yyyy",born,Date)
  14. End If
  15. End Function
  16.  
  17. Function bntClear_onclick()
  18. Form1.reset()
  19. txtDate.value=Date()
  20. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement