HI. tried that, and still got errors. So here's the error window. cheers Marvin. Error 1 Declaration expected. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 11 1 Bowling Error 2 Statement cannot appear outside of a method body. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 14 1 Bowling Error 3 'End Function' must be preceded by a matching 'Function'. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 15 1 Bowling Error 4 Character is not valid. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 18 14 Bowling Error 5 Name 'FindAverage' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 68 30 Bowling Error 6 Name 'GameOneInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 68 42 Bowling Error 7 Name 'GameTwoInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 68 58 Bowling Error 8 Name 'GameThreeInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 68 74 Bowling Error 9 Name 'GameOneInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 69 40 Bowling Error 10 Name 'GameTwoInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 69 56 Bowling Error 11 Name 'GameThreeInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 69 72 Bowling Error 12 Name 'GameOneInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 70 44 Bowling Error 13 Name 'GameTwoInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 70 60 Bowling Error 14 Name 'GameThreeInteger' is not declared. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 70 76 Bowling Error 15 'tbHighGameTextBox' is not a member of 'Bowling.frmBowling'. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 77 17 Bowling Error 16 Argument not specified for parameter 'index' of 'Public ReadOnly Default Property Chars(index As Integer) As Char'. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 77 43 Bowling Error 17 'tbSeriesTextbox' is not a member of 'Bowling.frmBowling'. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 78 17 Bowling Error 18 'tbHandicapTextBox' is not a member of 'Bowling.frmBowling'. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 79 17 Bowling Error 19 'NameTextBox' is not a member of 'Bowling.frmBowling'. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 126 18 Bowling ps: only the function calls, i am having problems. will have to go and look at my text box names, and correct that. sorry about that. Error 1 Declaration expected. C:\DOCS\Tafe\CertificateFourProgramming\CertFour\Programming\VisualBasic\Book\VisualBasicProgramming\ChapterFive\Example\Bowling\Bowling\frmBowling.vb 11 1 Bowling cheers Marvin. ----- Original Message ----- From: "Ricks Place" <OFBGMail@xxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Sunday, September 28, 2008 10:52 PM Subject: Re: VB.DOT NET Maths Question Hi Marv: It looks like the syntax is incorrect. Try: Private Function FindAverage(ByVal GameOneInteger As Integer, _ ByVal GameTwoInteger As Integer, ByVal GameThreeInteger as Integer) as Decimal You might be able not to have to define each passed item's data type, I always do. But you did not have spaces after the ByVal Keyword and for sure Vb would give you that type of error. Rick USA > that is the first line where the problem is: ----- Original Message ----- From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Sunday, September 28, 2008 8:46 AM Subject: Re: VB.DOT NET Maths Question > HI. > okay, sorry for that. > when i try to compile vb.net , i get a declaration error, and it starts > just > inside the public class, and the first set of function calls. > say for example: > > > Private Function FindAverage(ByVal GameOneInteger, _ > ByValGameTwoInteger, ByValGameThreeInteger as Integer) as Decimal > that is the first line where the problem is: > any ideas? > cheers Marvin. > ----- Original Message ----- > From: "Ricks Place" <OFBGMail@xxxxxxxxx> > To: <programmingblind@xxxxxxxxxxxxx> > Sent: Sunday, September 28, 2008 10:42 PM > Subject: Re: VB.DOT NET Maths Question > > > Marv: > I have no clue to what they are. I do not have, nor want, the book nor > the > project description, nor your code and would not look at a bunch of > function > calls without having you craft a specific question. > You say they are not working. First, exactly what do you mean by not > working? Are you getting a syntax error, are the outputs incorrect is > anything at all happening? I have no way to answer this question with the > information you put in this e-mail. I don't even know what to ask you to > try > and help. You have to craft your questions to a narrow topic, provide the > relevant code, just the relevant code, and then I can look at it and > either > give you an answer or ask you for more information about the problem. > Rick USA > ----- Original Message ----- > From: "Marvin Hunkin" <startrekcafe@xxxxxxxxx> > To: <programmingblind@xxxxxxxxxxxxx> > Sent: Sunday, September 28, 2008 8:30 AM > Subject: Re: VB.DOT NET Maths Question > > >> Hi. >> thanks for that. >> okay, will take that on board for future reference. >> thanks. >> ps: now, can you help with the function calls, i am having problems with? >> if so, i can resend the code again if necessary. >> cheers Marvin. >> ----- Original Message ----- >> From: "Ricks Place" <OFBGMail@xxxxxxxxx> >> To: <programmingblind@xxxxxxxxxxxxx> >> Sent: Sunday, September 28, 2008 10:24 PM >> Subject: Re: VB.DOT NET Maths Question >> >> >> Marv: >> You have to slow down and think about what you are asking. You are not >> asking anything that makes sense. I only know this from working on the >> project. If someone else read this they would just ignore it. >> You should craft your questions carefully perhaps in a text editor and >> send >> it when you are sure your facts are correct. >> See below: >> now the project is to calculate the investment, the interest rate and >> number >> of years. >> Marv, the above is not correct. >> You do not want to calculate the investment, interest rate and number of >> years. That is what you said and it is nonsense. You want to calculate >> the >> Future Value of the investment given a Investment Amount, Interest Rate >> and >> the Number of years. >> and the calculation is: >> future value = investment amount (interest rate + 1) ^years >> The above is good. >> so i thought the way to calculate that was: >> future value = investment * interest rate * years. >> is that right. >> The above is a valid question. Your formula is incorrect, you had it >> right >> before when we worked on the project, but your question is much better >> for >> others to give you a response. They look at the original calculation and >> tell you to use parenthsis and that you did not raise the necessary value >> to >> the exponential number of years. But the question is better. You really >> need >> to drop the project description, tell them the inputs and outputs if >> necessary for the calculation as it is here and then show them the >> original >> calculation from the book as you did, and your code solution as you did. >> Rick >> >> __________ >> View the list's information and change your settings at >> //www.freelists.org/list/programmingblind >> >> >> __________ >> View the list's information and change your settings at >> //www.freelists.org/list/programmingblind > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind