General information
Category:
Forms & Form designer
Title:
InteractiveChangeEvent
I want to use an EDITBOX and a LISTBOX to bring up a list of Customers (similar to the way the FoxPro help works. If the user enters B, the list should start with customers B... If they enter BRO, the list should start with BRO... etc.
The ROWSOURCETYPE for the LISTBOX is an array. I have the InteractiveChangeEvent on the EDITBOX set to trap each key press. I ASCAN the array to the current contents of the EDITBOX giving a location in the array. Then I set the LISTBOX.FIRSTELEMENT to that element. It doesn't work.
The problem is in the InteractiveChangeEvent. To simplify, I created a form with just an EDITBOX with a CONTROLSOURCE of cEntry. In the InteractiveChangeEvent I have: @ 10,10 SAY cEntry.
When I enter ABC in the EDITBOX, ABC shows in the EDITBOX but nothing shows at 10,10. If I put a SET STEP ON before the @ 10,10 SAY cEntry every EDITBOX entry is echoed at 10,10 (upon hitting RESUME). Why does it work with a pause (SET STEP ON) but not without? This is driving me up the wall.
Thanks in advance.
Rudy
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only