Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Show Form Hide
Message
 
To
13/02/2003 09:51:18
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00752644
Message ID:
00752666
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform