Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query is repeated infinitely
Message
From
07/11/1996 16:05:36
 
 
To
07/11/1996 12:04:19
Marcelo Daniel
Martin Cubero S.A. de C.V.
Cuautla Mor., Mexico
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00011696
Message ID:
00011734
Views:
27
>I have a drop-down list based on a query, calling requery method from the when event of the list and the query keeps repeating all time.
>If the code is paused by debug or if a wait command is placed at the wait event the query is just performed once as expected.
>I don't know if this is a problem with the form or with the data in the file. The same form runs well with a diferent instance of the data file.
>I think that if the problem were in the data, changes in the form wouldn't help (debugging and wait).
>
>I apreciate any help or suggestions
>
>TIA

Probably this is bug. But anyway it doesn't seem to me that When event is a good place for Requery. Would you like to consider Init event? If you have to refresh combo regarding to user operations you can add Requery method to other places (e.g. command buttons Click and so on). As far as I understand When event will fire any time you combo gets focus and this is waste of resources at least.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform