RE: Saving and restoring data environments - and variables

2007-01-03 Thread John Weller
If you are using data environments check that the auto close property is not set to True. If it is the tables in the data environment will be closed when the form is released. John Weller 01380 723235 07976 393631 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: Saving and restoring data environments - and variables

2007-01-03 Thread Ken Dibble
Also, I have two variables I use in each form to keep track of whether or not I'm in adding mode or edit mode. They're called Adding and Editing. When I open that second form then close it to return to the first form (which is still open), I lose Adding and Editing since I release them when

Re: Saving and restoring data environments - and variables

2007-01-03 Thread MB Software Solutions
Ken Dibble wrote: Also, I have two variables I use in each form to keep track of whether or not I'm in adding mode or edit mode. They're called Adding and Editing. When I open that second form then close it to return to the first form (which is still open), I lose Adding and Editing since I

RE: Saving and restoring data environments - and variables

2007-01-02 Thread john harvey
Well, you already have a few global objects where you could hang properties. _screen _application _vfp Just pick one, and add your properties, or you could use the forms collection which is under _screen. I believe all the above objects have an activeforms collection as well. John -Original

Re: Saving and restoring data environments - and variables

2007-01-02 Thread Eugene Vital
John J. Mihaljevic wrote: Hi all, In this project I'm working on, my users wanna be able to have several forms open at once. For example, if they're in the Finished Goods form, they may wanna open up the Customers form. If I open the Customers form and then close it, when I return to the

RE: Saving and restoring data environments - and variables

2007-01-02 Thread PabloSr
I am not one to be able to give you authoritative advise, but look into the .visible property of the form, and the possibility of creating methods on the form which will enable it to be hidden without actually releasing them. Once done, you may also be able to have a method to have the form show

Re: Saving and restoring data environments - and variables

2007-01-02 Thread Andrew Stirling
John You might want to have a look at the samples solutions \vfp9\Samples\Solution. run the 'solution.app' There is one in the Forms/RunMultipleInstancesOfAForm This will show you how to have several forms open at the same time. You might want to think about getting a Framework. Andrew Stirling

RE: Saving and restoring data environments - and variables

2007-01-02 Thread Dave Crozier
John, All you need to do is set a private datasession for the form and that will allow you to continue regardless of how many times the form is open - assuming that you can deal with potential record locks that is. Dave Crozier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL