dbList.BoundColumn doesn't work with MatchEntry in Click event 
Author Message
 dbList.BoundColumn doesn't work with MatchEntry in Click event

I have a dbList and some code in the Click event to Know the item the user
have selected. The code is similar to this:
     intItem=dbList1.boundText (I use it to present data relative to the
item).

It works when the user uses the mouse to select an item, but when the user
press a key to select the first item matching the key pressed, the property
dbList1.boundText contains the data of item before movement or matching is
executed. ?How can I get the property 'dbList1.boundText' after the matching
is executed?

thanks in advanced



Sun, 25 Feb 2001 03:00:00 GMT  
 dbList.BoundColumn doesn't work with MatchEntry in Click event
Mikel,

The way I got around this (for a dbCombo) was to put a SetFocus command in the
click event for the dbCombo to move the cursor to another control.  In the
LostFocus event of the dbCombo, I put the code to update the other controls
using the selection made by the user.  This way when the user starts typing and
he sees the value he wants in the list area, he presses tab to get to the next
control and the controls update.  It also allows the mouse selection to be made
as it moves the focus to another control when the selection is made. I use this
to bring up customer information when the customer name is selected from a combo
box.  This should be the same for dbList controls.

Matt Ridge

Quote:

> I have a dbList and some code in the Click event to Know the item the user
> have selected. The code is similar to this:
>      intItem=dbList1.boundText (I use it to present data relative to the
> item).

> It works when the user uses the mouse to select an item, but when the user
> press a key to select the first item matching the key pressed, the property
> dbList1.boundText contains the data of item before movement or matching is
> executed. ?How can I get the property 'dbList1.boundText' after the matching
> is executed?

> thanks in advanced



Sun, 25 Feb 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. dbList.BoundColumn doesn't work with MatchEntry in Click event

2. dbList.BoundColumn doesn't work with MatchEntry in Click event

3. dbList.BoundColumn doesn't work with MatchEntry in Click event

4. ActiveX-Exe: .Value=True doesn't work while direct click on button works

5. Dblist doesn't seem to work correct

6. Using arrow keys in listview doesn't generate a click event

7. fRefreshLinks Doesn't work if path doesn't exist

8. when i put controls on the form the key press event doesn't work

9. Document_Open event doesn't work in template

10. Combo Box Change Event Doesn't Work

11. Form_MouseMove event doesn't work

12. click event won't work in cancel button

 

 
Powered by phpBB® Forum Software