[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

All selected in TBLookupListBox?

Posted on 1998-12-11
6
Medium Priority
?
145 Views
Last Modified: 2010-04-04
When I single click in the TBLookupListBox control, all the items are selected, and I cannot prevent or alter this.

I am using Delphi 3 Standard.

How can I just have one item selected?
0
Comment
Question by:Chrism
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1350531
Hi Chrism,

I just tried to replicate your error, but I've no problem.

Can you show some source or handlings?

Zif.
0
 

Expert Comment

by:elkiors
ID: 1350532
Show us how you've set up the lookup criteria. Are you using persistant fields.?

Have you got multiple select set to false?

Darren
0
 
LVL 2

Author Comment

by:Chrism
ID: 1350533
There is no source involved with this item...as soon as I put the control on the form and connected the source, when I ran the program, I got this problem?

I do not know if I am using persistent fields (sorry), and I have not set MultiSelect anywhere.

The only things I have set that might be of interest are:

Datafield and DataSource are both blank.
KeyField = Inv_ID
ListField = Inv_Line_Desc
ListFieldIndex = 0
ListSource = Inv_Lines
ReadOnly = False

I have not set any other properties, but I will test anything suggested at this stage!
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:ZifNab
ID: 1350534
Chrism,

I tried it with BioLife table from DBDemos :

ListSource = DataSource1 (DataSource1 is attached to table1, with table1 set to biolife table. Active = True)

KeyField : Species No
ListField : Species Name
ListFieldIndex : 0
ReadOnly : False

it works perfectly.

Regards, Zif.
0
 
LVL 2

Author Comment

by:Chrism
ID: 1350535
Um..err...I am suitably embarrassed.

Thankyou for your persistance Zif, although your response did not solve the problem exactly, it indicated to me what the problem was. (and it all makes perfect sense now)

Because the KeyField was set to a foreign key, the way the listbox was set up was that every element in the listbox had the same value as in KeyField, therefore, when one was selected, all items were highlighted.

Please repost as an answer, as it was your persistance that got me through my stupidity.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 200 total points
ID: 1350536
Hi Chrism,

Glad the problem is gone. Well, I think everybody has of these days.

Regards, Zif.

------
Chrism,

I tried it with BioLife table from DBDemos :

ListSource = DataSource1 (DataSource1 is attached to table1, with table1 set to biolife table. Active = True)

KeyField : Species No
ListField : Species Name
ListFieldIndex : 0
ReadOnly : False

it works perfectly.

Regards, Zif.

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question