Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Show Form Hide
Message
 
À
13/02/2003 09:51:18
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00752644
Message ID:
00752666
Vues:
11
>Thank you for your quick reply. I do have one problem with your suggestion. I am calling Form B through a menu command so the code line 'do form FormB with ThisForm' shouldn't work - should it?

No it will not. I use a couple of function to cycle through the currently open forms and look for a specific form then return an object to it (one searches on form title the other on name) you could use something along these lines to get the Form A object.
Function GetWindowObject
lparameter tcWindowName
local loReturn, i, lnTot
	loReturn = .NULL.
	lnTot = _screen.FormCount
	tcWindowName = Lower(tcWindowName)
	for i=1 to lnTot
		if Lower(_screen.Forms(i).Name) == tcWindowName
			loReturn = _screen.Forms(i)
			exit
		endif
	endfor
return loReturn
HTH
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform