Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which methods to use for a listbox?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01104865
Message ID:
01104984
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
From the code examples you posted my first reaction is that the code could be put in InteractiveChange and ProgrammiticChange and reomved from the tohers. Those events cover all the ways the value in the control could change. Usinge interactiveChange precludes the need to use the Click and Keypress events as any action that would fire Click or Keypress would also fire InteractiveChange. Adding the ProgrammicChange adds coverage for some code assigning a value to the control.

Also since the *Change events only fire the value has CHANGED it precludes the need to do most of the IF stuff that is checking to see if the value changed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform