Otto wrote:Hi Silvio,
May I ask what you store in your fields.
For example, I use one field to store if a guest has been in the hotel in the different years.
I use a character field and I insert:
"JNNJNJNNNJJJ"
The first chatacter is for the year 2010, the second for 2011, ...
J means he was a guest, N not.
This reduces the number of fields inside the database.
Best regards,
Otto
TimStone wrote:Silvio,
That sounds doable if you use multiple DBFs that are linked.
For example:
An exercise description file
A student file ( one record for each student )
A daily exercise record ( it can have a link to the description, and one to the student, plus fields for date and results )
Your program then displays the data based on your selection criterion. To load the data each day, create an array. The first element can be the student name, and then the additional elements can be for the exercises they do that day. Using the student file, you create a two dimensional array, with one for each student. Then use an xbrowse, editable, to show the array. The user sees it and can fill in the values. When you save it, upon completion, the array elements are recorded in appended daily records for each student.
Views and reports can then be created to see the data, and you can even build a routine to edit it when desirable.
Tim
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 50 guests