Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last project not openning on start
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01381639
Message ID:
01381668
Vues:
38
I did that first. Both locations have the foxuser.dbf and a _command.prg file. I understand that _command file is what vfp wrwites to when it closes?? I open vfp twice, the first is VFP-DEV. The second is VFP-TEST. I want them to use different resource files but they seem to be defaulting to the same one. I use this code in the file that starts from config.fpw. abvout have down the below code you will see the code for using the different resource files.
* set8Envir.prg

SET DEFAULT TO P:\SourceDev
&& TMPFILES = c:\temp
SET PATH TO ""
&& HelpTo = c:\program files\microsoft visual foxpro 8\dv_foxhelp.chm
&& HelpCollection = 
SET HELP ON
*!*	SET HELP COLLECTION 
SET HELP TO "c:\program files\microsoft visual foxpro 8\dv_foxhelp.chm"
*!*	&& ResourceTo = c:\documents and settings\williams_cj\application data\microsoft\visual foxpro 8\foxuser.dbf
*!*	SET RESOURCE ON
*!*	SET RESOURCE TO "c:\documents and settings\williams_cj\application data\microsoft\visual foxpro 8\foxuser.dbf"
* use another foxuser resource file if a session of VFP is already running
LOCAL lcApplicationTitle,lnHWnd,lcFile
*!*	lcFile = "E:\Program Files\Microsoft Visual Studio\Common\VFP\FoxUser"
lcFile = "C:\Program Files\Microsoft Visual FoxPro 8\"
lcApplicationTitle = "VFP8-Dev"

DECLARE INTEGER FindWindow IN Win32API;
STRING @lpClassName, STRING @lpWindowName
lnHWnd = FindWindow(0, @lcApplicationTitle)

IF lnHwnd = 0
	SET RESOURCE TO (lcFile+"foxuser.dbf")
	_screen.caption = "VFP8-Dev"
ELSE
	SET RESOURCE TO (lcFile+"vfp\foxuser.dbf")
	_screen.caption = "VFP8-Test"
ENDIF
SET RESOURCE ON
ON ERROR
STORE "c:\program files\microsoft visual foxpro 8\wizard.app" TO _WIZARD
STORE "c:\program files\microsoft visual foxpro 8\builder.app" TO _BUILDER
STORE "c:\program files\microsoft visual foxpro 8\convert.app" TO _CONVERTER
STORE "c:\program files\microsoft visual foxpro 8\genmenu.prg" TO _GENMENU
STORE "c:\program files\microsoft visual foxpro 8\browser.app" TO _BROWSER
STORE "c:\program files\microsoft visual foxpro 8\gallery.app" TO _GALLERY
STORE "" TO _INCLUDE
STORE "c:\program files\microsoft visual foxpro 8\beautify.app" TO _BEAUTIFY
STORE "" TO _GETEXPR
STORE "c:\program files\microsoft visual foxpro 8\genhtml.prg" TO _GENHTML
STORE "c:\program files\microsoft visual foxpro 8\taskpane.app" TO _STARTUP
STORE "" TO _STARTUP
STORE "c:\program files\microsoft visual foxpro 8\samples\" TO _SAMPLES
STORE "c:\program files\microsoft visual foxpro 8\coverage.app" TO _COVERAGE
STORE "c:\program files\microsoft visual foxpro 8\tasklist.app" TO _TASKLIST
STORE "c:\program files\microsoft visual foxpro 8\objectbrowser.app" TO _OBJECTBROWSER
STORE "C:\DOCUMENTS AND SETTINGS\WILLIAMS_CJ\APPLICATION DATA\MICROSOFT\VISUAL FOXPRO 8\FOXCODE.DBF" TO _FOXCODE
STORE "c:\program files\microsoft visual foxpro 8\foxcode.app" TO _CODESENSE
STORE "C:\DOCUMENTS AND SETTINGS\WILLIAMS_CJ\APPLICATION DATA\MICROSOFT\VISUAL FOXPRO 8\FOXTASK.DBF" TO _FOXTASK
STORE "c:\program files\microsoft visual foxpro 8\vfpxtab.prg" TO _GENXTAB
STORE "c:\program files\microsoft visual foxpro 8\foxref.app" TO _FOXREF
STORE "c:\program files\microsoft visual foxpro 8\toolbox.app" TO _TOOLBOX
STORE "c:\program files\microsoft visual foxpro 8\taskpane.app" TO _TASKPANE
SET SYSFORMATS OFF
SET SECONDS OFF
SET CENTURY ON
&& CurrSymbol = $
SET CURRENCY LEFT
SET CURRENCY TO "$"
SET HOURS TO 12
SET DATE TO AMERICAN
SET DECIMALS TO 2
SET FDOW TO 1
SET FWEEK TO 1
SET MARK TO ""
SET SEPARATOR TO ","
SET POINT TO "."
>1. It sounds like you lost the Resoturce file - foxuser.dbf. Go to Tools -> Options -> File Locations -> Resource File and make sure that it's enabled and points to a valid foxuser.dbf. Don't forget to save settings by pressing 'Set As default'.
>If it doesn't help, delete foxuser.dbf.
>
>>Lately when I start VFP, my last project is not loaded and the command window does not have the commands last typed. I have a set8envir prg that runs from config fpw. If the vfp8 window doesn't exist I set resource file to the root of vfp8 otherwise I set it to a subfolder. It was working fine until the other day and I haven't a clue what I changed. I cannot get it back.
>>
>>Does anyone have an idea?
>>
>>By the way, how do I get rid of the message bar on the right side of this screen, it is annoying.
Extreme Programming = Plan -> Design -> Code -> Test
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform