May not be very practical, but you might want to try to put a foundation read after each .spr, and put the read events as the read after you loaded the menu.
You won't have access to vfp screens when a fpw form is open, but I guess that is to be expected.
Good luck :)
>I have a large legacy application written in FPW 2.6 we are trying to migrate it to the VFP9 environment.
>
>We have do decided to do use a hybrid conversion strategy. Run the old code (from the SPRs generated by FPW) and add new functionality using the VFP.
>
>The problem is that the FPW foundation READ required by the FPW code is not allowing the VFP screens to fire their events – essentially the Read Events is being ignored.
>
>The program is structured something like this:
>
>a) Main program calls the menu (main.mpr) followed by a READ VALID()
>b) From the menu – call the SPRs as required – they run – no problem
>c) From the menu - DO FORM VFP_FORM - problem.
> Whenever I click on the screen, the program immediately jumps to the foundation Read’s valid function
>
>I have tried to :
>a) issue a READ EVENTS immediately after the DO FORM command and it is ignored.
>b) Issue a READ EVENTS before the foundation Read – the VFP code works but the SPR code that requires the foundation read fails.
>c)There is no difference between modal screens and non-modal screens.
>
>Any assistance would be greatly appreciated.
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.