I'm trying to figure out how to deal with multiple matches in my address book, say the user has two people by the name of Bob; one is Bob Lastname and the other is Bob Namelast, how would you approach dealing with telling them to specify, and then allowing them to do so and get a result. Also, what if a user just has two contacts named Bob with no last name, what would you do then? I've got a temporary system in place that checks the within a given len of the input against a given len of the keys at hand, but that has several issues as I'm sure you can imagine.
JoshuaBurleson
23
Posting Whiz
Recommended Answers
Jump to PostIf your address book is a console application, I suggest displaying a menu to choose from like
'Bob' matches 4 contacts: 1. Bob Lastname 2. Bob Namelast 3. Bob 4. Bob enter your choice:
Jump to Postit's a GUI 'tkinter' application
Then pop up a Listbox widget with the same list.
Jump to Postoh great, I haven't even heard of the listbox until now, I'll let you know how it works out. Thanks.
Some applications let you choose a word in a dictionary. You have an entry widget where you start typing your word and a listbox-like widget which content is updated every …
All 9 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
JoshuaBurleson
23
Posting Whiz
Gribouillis
1,391
Programming Explorer
Team Colleague
JoshuaBurleson
commented:
thanks.
+3
JoshuaBurleson
23
Posting Whiz
Gribouillis
1,391
Programming Explorer
Team Colleague
TrustyTony
888
pyMod
Team Colleague
Featured Poster
JoshuaBurleson
23
Posting Whiz
TrustyTony
888
pyMod
Team Colleague
Featured Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.