Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return a value from a form
Message
De
02/05/1998 06:26:44
 
 
À
01/05/1998 16:45:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00095978
Message ID:
00096477
Vues:
20
>My program is callin the Form like suggested in the thread 'Do Form With param1 To Var'
>
>Not sure how to implement your suggestion. Can you express in a small example?

I implemented msgsing between objects - this saves me the need to have anything modal, but a little too compilcated to go into here
but as for passing parameters, here is a simple example
(you can do the same with SCX based forms )
loParam=CreateObject("params")
myForm=createObject("formclass",loParam)

? loParam.nSomeValue
myForm.Show(1)
? loParam.nSomeValue

DEFINE CLASS Params as Custom
    nSomeValue=0
ENDDEFINE

DEFINE CLASS formclass as form
	oParam=.null.
	
	PROCEDURE Init
		LPARAMETERS toParam
		this.oParam=toParam
	ENDPROC

	PROCEDURE QueryUnload
		this.oParam.nSomeValue=10
		this.oParam=.null.
	ENDPROC
ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform