Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling subforms from grids produces strange results 1

Status
Not open for further replies.

jworley

Programmer
Jun 19, 2000
36
GB
(VFP 6) I have a grid on my form and have programmed the gotFocus method of a text box in the second column to call another form, passing it an array that is supposed to return a value that will fill the text box when the called form is closed.

On running the form and shifting focus to the text box, the subform is called ok, but on clicking the OK button on it(thisform.release), the form refuses to close and remains in that state until the program is cancelled. I've set both forms to modal, with no success and I've tried modeless too, no results. I'm stumped !

Jim Worley
jim@aits-uk.net
15 years practical IT experience from sales to support to development plus B.Sc. (Hons) Computer Studies, fluent German speaker, willing to have a go at anything and don't suffer fools gladly !
 
Hi!

Try to move code from GetFocus event into the WHEN event of the text box. In addition, check if you form called from grid is not referenced as object from other objects/variables.





Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top