Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Steven Rebello
  Where is Steven Rebello?
 Bangalore
 India
 Steven Rebello
Subject: RE: View requires a variable
Thread ID: 179967 Message ID: 179976 # Views: 1 # Ratings: 2
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, June 24, 2008 4:37:51 PM         
   



> Hi,
>
> Here I go again with a new thread connected with the hottest aspect of my private life, at this time - Public variables!

Sounds interesting :-)

> My question: A form calls a View which powers the form. The View requires a variable parameter. How do I send this variable to the View from the form's Load event, without too much of coding, (I'm hoping!) .

You do not need a public parameter variable for that - just set the view's property .NoDatOnLoad=.T. (when you have the view added to the form.DataEnvironment) or "USE theView NoData" (when you open it programmatically in form.Load()).
Then, later in form.Init() for example, you can create a Local view parameter variable and Requery("yourView").


hth
-Stefan

ENTIRE THREAD

View requires a variable Posted by Steven Rebello @ 6/24/2008 4:10:02 PM
RE: View requires a variable Posted by Ilya Rabyy @ 6/24/2008 4:29:55 PM
RE: View requires a variable Posted by Steven Rebello @ 6/26/2008 9:29:32 AM
RE: View requires a variable Posted by Stefan Wuebbe @ 6/24/2008 4:37:51 PM
RE: View requires a variable Posted by Hugo Ranea @ 6/24/2008 8:55:15 PM
RE: View requires a variable Posted by Steven Rebello @ 6/26/2008 9:23:30 AM
RE: View requires a variable Posted by Stefan Wuebbe @ 6/26/2008 10:07:56 AM
RE: View requires a variable Posted by Steven Rebello @ 6/27/2008 6:39:50 PM
RE: View requires a variable Posted by Stefan Wuebbe @ 6/27/2008 7:42:05 PM
RE: View requires a variable Posted by Steven Rebello @ 6/30/2008 8:50:48 AM
RE: View requires a variable Posted by Stefan Wuebbe @ 7/1/2008 8:27:27 AM
RE: View requires a variable Posted by Hugo Ranea @ 6/28/2008 12:10:20 AM
RE: View requires a variable Posted by Steven Rebello @ 6/30/2008 8:58:50 AM
RE: View requires a variable Posted by Hugo Ranea @ 6/30/2008 6:52:03 PM
RE: View requires a variable Posted by Steven Rebello @ 7/2/2008 5:20:23 PM
RE: View requires a variable Posted by Samir Ibrahim @ 6/24/2008 5:15:20 PM