Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
InteractiveChangeEvent
Message
De
31/03/2004 12:24:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00891198
Message ID:
00891214
Vues:
16
>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

The cEntry ControlSource doesn't get updated until that control lostfocus. So when you go to the debugger that control didn't have focus. To test instead of @10,10 SAY cEntry put @10,10 SAY This.Value you will see that what you typed is at 10,10
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform