Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Locking Update
Message
From
20/05/1998 12:28:40
Becky Vidal
Heritage Information Systems, Inc.
Richmond, Virginia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Form Locking Update
Miscellaneous
Thread ID:
00100592
Message ID:
00100592
Views:
85
>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
Map
View

Click here to load this message in the networking platform