Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Daniel Hofford
  Where is Daniel Hofford?
 Ocala
 Florida - United States
 Daniel Hofford
 To: Marcia Akins
  Where is Marcia Akins?
 Akorn
 Ohio - United States
 Marcia Akins
 Tags
Subject: RE: Parameters2Forms
Thread ID: 154856 Message ID: 154930 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, December 20, 2007 5:29:00 PM         
   


> How can I send parameters to a form that are used to build a cursor for a grid? My understanding is that the grid init fires before the forms init.
>
> This is true, but in VFP 9 you can set the form's BindControls Property to .F. in the form designer and then set it to true after you have built the grid's RecordSource,
>
> Regards,
> Marcia G. Akins
> Tightline Computers, Inc.


Interesting - it worked exactly as you said it would. But it also made the code in the lostfocus method unexecutable. Why or how I don't know. I put a value in the field and hit enter - nothing. So I changed the BindControl property of the form back to .t. and ran it again, and the code executes. Set it to false and ran it again - nothing.

??

Dan
"Our gold does not chink and glitter. It gleams in the sun and neighs in the dark." Chief Joseph

ENTIRE THREAD

Parameters2Forms Posted by Daniel Hofford @ 12/20/2007 6:12:11 AM
RE: Parameters2Forms Posted by Vladimir Zhuravlev @ 12/20/2007 7:12:31 AM
RE: Parameters2Forms Posted by Marcia Akins @ 12/20/2007 12:47:05 PM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/20/2007 4:48:45 PM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/20/2007 5:29:00 PM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/20/2007 5:36:59 PM
RE: Parameters2Forms Posted by Barbara Peisch @ 12/21/2007 3:29:49 AM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/21/2007 5:16:48 AM
RE: Parameters2Forms Posted by Barbara Peisch @ 12/21/2007 6:04:32 AM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/22/2007 2:05:28 AM
RE: Parameters2Forms Posted by Marcia Akins @ 12/22/2007 8:19:50 PM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/23/2007 5:10:05 AM
RE: Parameters2Forms Posted by Marcia Akins @ 12/24/2007 12:49:51 PM
RE: Parameters2Forms Posted by Daniel Hofford @ 12/24/2007 4:09:30 PM
RE: Parameters2Forms Posted by Ken Murphy @ 12/20/2007 1:39:13 PM