Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mark column whith checkbox in a grid
Message
 
À
06/06/2001 17:11:19
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00516061
Message ID:
00516110
Vues:
15
Are you updating the array when you make a change in the grid? If I've understood you correctly, then you don't need to put code into the controlsource. Use a table or read/write cursor or view as the grid's recordsource, with a logical field for the checkbox. Put code that updates the array into the checkbox Valid() if you want to keep the array updated with each check/uncheck made. Otherwise you can call a method that scans the grid's table/cursor/view when you need the array.

HTH
Barbara


>I'm working to make a grid for an application, where I can select some records by clicking a checkbox in a grid. I figured out how to put a checkbox in a grid.
>Now i want an array containing the recordnumbers i have ticked in the grid. When I de-tick a checkbox in the grid i whant to remove the record number from the array. But when I bind:
>
>=iIf( ASCAN( aRecs, RecNo() ) = 0,.F.,.T.)
>
>to the controlsource of the checkbox column the grid blanks when I want to run it. What's wrong and how can i solve it ?
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform