Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difficult incremental search
Message
From
18/07/2007 20:04:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/07/2007 17:45:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01241749
Message ID:
01241765
Views:
43
This message has been marked as the solution to the initial question of the thread.
>Suppose you have a dropdown combo showing a person's FULLNAME i.e. Don Freeman. We want the return value to be the person's ID number i.e. PERSON_ID. And we want the incremental search to be based on the LAST_NAME. This code gets me partway, but what else do I need to cause the incremental search to follow the last_name rather than the fullname?
>
>
>this.rowsource = "select fullname, person_id from people order by last_name into cursor " + this.name
>this.boundcolumn = 2
>this.incrementalsearch = .t.
>
>
>Is this even possible?

I think the combobox will always apply the incremental search to the first column. You can only pick what goes into first column. Maybe
this.rowsource = "select last_name-(", "+first_name), person_id from people order by last_name into cursor " + this.name
can do the trick.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform