Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select several records within a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01663827
Message ID:
01663839
Vues:
64
>Hello friends; How can I select several records within a grid?

Yes it is possible, we wrote many many years ago a class to handle this, my memory is not that good, but the big strokes picture is that we put a class base on custom with a property with the name of the grid that we want to make multi-selectable (attachment shows a grid with some records selected) this object will add a transparent container on top of the data area of the grid and handle the clicks, alt-clicks, shift-clicks, ctrl-clicks, etc that you would normally use in a multiselect object, like windows explorer. When a record is clicked, the record number is added/removed into a cursor (also created by this object) and this cursor is then used to paint the background of the cells, copy data to a different table or a text file, the clipboard etc. (second attachment)

In short I cannot give you the class as it is embedded in our system and is not easy to rip apart, but it is doable and it has been working for... maybe 15 years!! (time flies)

Hugo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform