|
|
#1 |
|
Hyperactive Member
Join Date: Aug 02
Location: Fox, OK
Posts: 378
![]() |
[2005] Need To Add Property/Method
vb Code:
I need to create new methods or properties or whatever to figure a student's HomeworkAverage and TestAverage. The problem is that the student's Grade.class is a subset of the Course.class. To figure the HomeworkAverage, I need to know which grades are Homework ones, and to figure the student's TestAverage, I need to know which grades are Test grades. This information is stored in the Assignment.class, which is also a subset of the Course.class. If someone can show me a method or property to just find the SUM of only the Homework grades so that I can access it in the main program with Course.Student(StudentIndex).HomeworkSum(HomeworkSumIndex) then I think I can get the rest. One note: each grade is stored as a string. Some of the grades contain "x", which makes those grades exempt. So obviously, to find the sum, you would need to first check for the "x" character. If there's no "x", then convert it to an integer and add it to the total. I hope someone can help with this one. I've made a lot of progress the last few days because of help from this forum. |
|
|
|
|
|
#2 |
|
Hick
Join Date: Mar 05
Location: US of A
Posts: 2,325
![]() ![]() ![]() ![]() |
Re: [2005] Need To Add Property/Method
Are you familiar with using the dataset designer? I would probably create a dataset to hold this information. It appears as though you are trying to create a simple relational database, which can be done via a dataset. Depending on your plans for the project, you may even look into free sql databases to store your data in.
|
|
|
|
|
|
#3 |
|
Hyperactive Member
Join Date: Aug 02
Location: Fox, OK
Posts: 378
![]() |
Re: [2005] Need To Add Property/Method
I've never done ANYTHING with database programming. Not sure that I'd be up to the task.
|
|
|
|
|
|
#4 |
|
Hick
Join Date: Mar 05
Location: US of A
Posts: 2,325
![]() ![]() ![]() ![]() |
Re: [2005] Need To Add Property/Method
Right click your project, select add new item, then choose dataset. Make sure to rename it, or you'll have the infamous DataSet1 added to your project. Next decide how your data is related, In my example you would create a student table that has a one to many relationship to ParentalUnits. The student table also has one to many relationship with courses, and courses a one to many with assignments. Then all you need to do is fill in the data, and report on it.
Last edited by wild_bill; Jul 9th, 2007 at 10:19 AM. |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|