main logo
Subject: Accessing cursor attached to listbox (VFP8)
Author: MB Software Solutions
Posted: 2006/04/30 22:58:37
 
View Entire Thread
New Search


Got a local view as the recordsource for a listbox. The primary key
values haven't yet been assigned (they're auto-increment in the database
table) so the record's primary key value for all records is 0. I want
to add some "Remove record" functionality to a button on the screen to
allow the user to remove records from the listbox. With grid's, it's
easy...I just query the view's recordsource cursor values and delete
that record, but for a multi-select listbox, how do I cycle through the
underlying data (without a unique PK value yet) so the user can delete
multiply selected records?

I don't normally use listboxes, so your help is greatly appreciated!

tia,
--Michael

--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"





 
©2006 MB Software Solutions
<-- Prior Message New Search Next Message -->