General information
Title:
Form Locking Update
>Original Message: I am having a very strange problem. I have created a form with many objects and a pageFrame with 3 pages. I call the form from a .SPR file. The .SPR file sets some public variables, opens a dataBase and calls the form. The form comes up, but I can not access any object on the form. I have to use the Debugger "Cancel" to exit the application. The form is set up as "MODAL". Has any one else had this problem? If so how do I fix it?
I have further tested this problem and found the following:
If I run the .SPR file (which calls the form) from the command box, the form works.
If I run the .SPR from the menu, the form locks up. The code in the menu item calls the .SPR. The code in the SPR calls the form. When the form is run, I can see it run through the methods, then the program seems to lock up at the DO FORM statement in the SPR. Everytime I click on the form, the MYHANDLER function is called. The original application was writted in FoxPro 2.6. I did a functional conversion to Visual FoxPro. The following is the code used to call the menu:
** Program which calls the menu
DO business.mpr && Calls menu
READ VALID MYHANDLER()
FUNCTION MYHANDLER
IF trmflg
RETURN .T.
ENDIF
RETURN .F.
**********************************
** Menu procedure
SET SYSMENU OFF
DO s_rptbus.spr
SET SYSMENU ON
**********************
Can anyone help?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only