Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anil Sharma
  Where is Anil Sharma?
 ludhiana
 India
 Anil Sharma
 To: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 Tags
Subject: RE: open files in the data environment
Thread ID: 331091 Message ID: 331110 # Views: 40 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Tuesday, December 27, 2011 4:27:34 AM         
   


> >
> > Hi Pete we can achieve same with single line
> >
> > THISFORM.SetAll("DATABASE",'C:\yourdbc.DBC','CURSOR')
> >
> >
> >
> > Anil
> >
> >
> > Accounting Software
> >
> > Web Development
> >
> > Accounting, Inventory, Hotel Management, Restaurant Kot Billing, MLM, Excise Accounting and much much more!.
> > My Blog
>
>
> Hi,
> First I am interested if you are using the SetAll method for this purpose where are you placing this code in the form events? Since I have never used SetAll for this purpose just wondering. . . normally SetAll would go in the form's INIT event, but you have already loaded the tables in the forms DA prior to things being changed in the INIT event.
> Secondly, how do you handle re-pointing reports to the new targeted database container so all report globally prints the data from the new database and tables?
> Pete "the IceMan", from the Great White North of Canada.
> www.marathongriffincomputers.com

Data Environment is part of form. so THISFORM is available in BeforeOpenTables event too! Only problem is before
the INIT event you cant access the objects of Form. Becaz they have not drawn on form before init event. but all
the properties end events of forms are available to you all the time.


Anil


Accounting Software

Web Development

Accounting, Inventory, Hotel Management, Restaurant Kot Billing, MLM, Excise Accounting and much much more!.
My Blog

ENTIRE THREAD

open files in the data environment Posted by Carlos Lima @ 12/26/2011 6:33:58 PM
RE: open files in the data environment Posted by Pete Sass @ 12/26/2011 7:51:06 PM
RE: open files in the data environment Posted by Anil Sharma @ 12/26/2011 8:26:11 PM
RE: open files in the data environment Posted by Pete Sass @ 12/27/2011 2:06:54 AM
RE: open files in the data environment Posted by Anil Sharma @ 12/27/2011 4:27:34 AM
RE: open files in the data environment Posted by Pete Sass @ 12/27/2011 2:57:49 PM
RE: open files in the data environment Posted by Cetin Basoz @ 12/27/2011 3:46:48 PM