Data Access Worldwide Knowledge Base
Article ID 2222 Article Title QUESTION: What happened to selected_Items between 10.1 and 12.0? Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2222 KBase Category VDF11 Date Created 05/22/2006 Last Edit Date 05/22/2006
Article Text
QUESTION:
I migrated my simplest worspace and I am not capable of compiling. I am migrating from 10.1 to 12. I keep getting "function not found selected_Items" error.
Can someone point me to what is causing that?
ANSWER:
This was an 11.0 change. Selected_items was a set object used in selection lists and was meant to be private. In 11.0, the internal implementation for handling selected items in a dbList changed and that set object no longer exists. I see that we talk about this object in the dbList help and that is an error (actually that's an error that goes back many versions - we should not be talking about private objects. That is very old doc that got pasted incorrectly into our class help).
The public interface for working with selected items in a dbList are:
Get/Set Select_Count
Get First_Selected_Item
Get Next_Selected_Item
Set Select_State
and these interfaces have not changed.
The best way to correct the error you are getting is to change your code to use these public messages.
Contributed By:
John Tuohy
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.