Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding containers to the form on the fly
Message
 
 
À
30/06/2005 11:22:55
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01027545
Message ID:
01027710
Vues:
16
>what type of form are you using??? I'll see about adding a delayed page to a form tonight and tell you what happens... maybe it's another foxpro bug.. :-)

No, actually in the PostCancelHook of the biz object we're doing some extra work, like adding a new record. We don't want to do it if we Close the form. I added a new property to the form lIsClosing, set it to true in QueryUnload (bellow is my code). But I have some concerns and confusion about nodefualt behavior. I'm going to create a new thread in the Forms category.
*---------------------- Location Section ------------------------
*   Library: 	Aforms.vcx
*   Class: 		Dataentryform
*   Method: 	Queryunload()
*----------------------- Usage Section --------------------------
*)  Description:
*)

*   Scope:      Public
*   Parameters:
*$  Usage:
*$
*   Returns:
*--------------------- Maintenance Section ----------------------
*   Change Log:
*       CREATED 	06/07/2005 - WGB
*		MODIFIED
*----------------------------------------------------------------
LOCAL llReturn
thisform.lIsClosing = .t.
if type('THISFORM.ActiveControl') = 'O' and not ;
		isnull(thisform.activecontrol) and PEMSTATUS(thisform.activecontrol,'valid',5) ;
		and inlist(lower(thisform.activecontrol.baseclass),'textbox','editbox')
	thisform.activecontrol.valid()
endif

llReturn =  dodefault()

thisform.lIsClosing = .f.

RETURN m.llReturn
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform