Jim, I'd forgotten that article. You're right, it DOES include keeping a count of the items in an array. I think it's just what I need.
Thanks for remembering
Barbara
>Barbara,
>
>Back in the July or August issue of FoxPro Advisor there was an article about smart or intelligent listboxes, and I think one of the things it did (or could be adapted to do, I'm sure) is what you need.
>
>As I remember it, the function was origianlly developed to get around a VFP 3.0 problem limiting Lists to 60 items, but had other benefits so was continued even after the fix was done by MS.
>It essentially used an array to keep track of selects/deselects.
>
>Good luck,
>Jim N
>
> >>>We have a listbox populated with a read/write cursor, ranging from 100 to 2-3000 records. The user wants to know how many items have been selected using the Shift-click and Ctrl-click methods.