Hi all I was working on a program and really need some help with my coding. Here is code I'm working on thanks for your advice in advance.
'this program will Display Year of age and days on earth assumming the current date is 12/31/2006, the user types 1980 into the txtBox before btnDisplay is clicked. The last two lines of the output should be displayed by one or more Sub Procedures using data passed by variables from an event procedure (You are now 26 years old, You have lived for more than 9490 days)
Dim yob As Integer
yob = txtBox.Text - 12 / 31 / 2006
Sub AgeIn2006(ByVal yob As Integer)
'Displays the age in years and days
txtBox.Text = "You are " & yob & "years old you have lived for more than
" & yob * 365
I was not sure how to tag or wrap my post, if I did it wrong again please advised me
of the correct way, trust me when I say I'm new to this. Didn't realize how frustrating coding was.