Can I use Enabler with Microsoft Visual FoxPro?

Home > Support > FAQ > Can I use Enabler with Microsoft Visual FoxPro?

Yes, due to FoxPro's support for ActiveX controls, you can build Enabler Applications using this development tool. Below is a description of known issues when using our ActiveX controls in Fox Pro.

DeliveryItemSelectedEvent does not fire from ActivatePopup

Problem

FoxPro cannot handle nested events. That is, if the code is inside an event handler such as a button click, or key press, any other events will be ignored.

Example

If you call EnbPumpX.ActivatePopup from an event. This method displays the Pump Status/Stack dialog. The user can then select a delivery from the stack. This normally causes the DeliveryItemSelected event to fire.

Because of the FoxPro limitation, this event does not occur.

Workaround

Set the ModalPopup property of each EnbPumpX control to .F. (false). The dialog will then be displayed modelessly; that is, it will be displayed, but your code will continue to run - you should then return from the event handler. This will allow the DeliveryItemSelected event to fire when the user selects a delivery some time later.