Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert into Table (Enrolled into Attendance)
Message
 
À
08/11/1999 19:54:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00288786
Message ID:
00288814
Vues:
10
Greg,
You can add a checkbox to a grid (replace the default textbox) by simply dragging it over to the active column. Then choose the text box in the same column in the Property sheet, click on the EDGE of the grid (not on a column or header) and click DELETE. This will remove your text box.

The checkbox can be linked to a Logical field for attended/did not attend. If you use a buffered table or a buffered view in the grid you can make all the changes and save at once.

Totals can be made 'on the fly' when you click on the checkbox. Use the InteractiveChange() method.

Also, take a look at the Sparse property which may affect the display.

Finally, note how I've added < pre > and < /pre > codes to show your code better.

HTH
Barbara

>I have a Grid of Enrollments on Page one. Every week is the weekly attendance for the enrollment on page two.
>
>What is the best method for accomplishing in a Grid where I can just check a box and insert or delete (if there is a mistake of attendance) a person who has attended:
>
>For Example:
>
>Enrollment:
>
>
Org_Id:  Person_ID:   Name: (Got from People Table)
>1        A            Greg
>1        B            Renee
>1        C            David
>...
>2        A            Greg
>2        D            Michael
>
>
>Attendance Screen would be generated for Org ID: (Default)
>
>
Org ID:  1    This Class #1     Date:  11/8/98
>  ID  Name        Attended
>  A   Greg      [](checkbox)
>  B   Renee     [](checkbox)
>  C   David     [](checkbox)
>
>I would like to total at the bottom of the Grid and not insert into the table until I am complete with a list of People (up to 75 people can be enrolled into a organizational unit). I also would like to be able to check and uncheck boxes even after initial population of data.
>
>Note: I voluntered to help my Church rewrite an OLD DOS based program that is not Y2K Compatible, and time pressures have caused me to ask for more help than I typically would ask for. I would typically do a lot more research but this is a great avenue to get an application quickly developed.

Good for you. Hope you get thanked profusely.


>
>
>Thanks for all assistance (I still have plenty of work to do at night *not part of my full time job* to get this done in the next few weeks)
>
>
>Greg
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform