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!

Recreating a project

Status
Not open for further replies.

repete

Programmer
Nov 14, 2000
151
AU
I have a large project, it generates an app of 3.9 mb. I decided to regenerate the project. I created a new project name (modi proj newname) and added my main file (name.mnx), and set the wheels in motion by building the project.

It built with no errors, but when I ran the resulting .app file, I had problems with the code. On a bit of investigating, I found that my screns in the original project "opened" and "closed" files, but in the new project, these two settings were not activated.

I have over 130 screens, and don't want to manually go through them all if that can be avoided. Is there something I should do before creating a new project to get the "open" "close" settings to be as per the original project ? What have I missed ?


BTW, the exercise created an .app file of 2.2 mb in size, so I'm happy 'bout that.
Pete Bloomfield
Down Under
 
I do not know of a place you can go to change the settings of all existing screen properties. I have never tried this, but, The Screen.scx file is a database that you can open with the USE command. All the screens properties are stored in this file. If you can find the field that controls the open/close databases option and turn it on that might help. That is assuming the screen enviroment file still exist and the screen knows with files to open. David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Thanks Dave, I didn't want to start hacking the raw screen files (and project file) unless I had to. I just wanted to check to make sure i didn't have SET USERSUPIDITY ON :) before I stared on that route.
Pete Bloomfield
Down Under
 
Hi Guys,

I think you're almost right:

The place you want to look is not the .SCX file but the .PJX project file. That's probably because these options are not properties of the screen itself, but of the generated screen set.

We have had the same issue as you have - rebuilding a project file - but our problem was the "Modal" tick box.

Either way, if you
Code:
use projectname.pjx
, you'll find the columns for "
Code:
openfiles
" and "
Code:
closefiles
" there, so your change should be a one liner:
Code:
replace all openfiles with .t. ...etc... for type="s"
Possibly you should filter on "
Code:
for not empty(outfile)
" to identify the _Screen Set_ as opposed to the screen, but my project files all seem to have
Code:
type
= lowercase "s" for screen set, and
Code:
type
=Uppercase "S" for screen.

Do tell us if that works,
Thanks,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top