Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Locking Update
Message
De
20/05/1998 12:28:40
Becky Vidal
Heritage Information Systems, Inc.
Richmond, Virginie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Form Locking Update
Divers
Thread ID:
00100592
Message ID:
00100592
Vues:
86
>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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform